further clear screen debugging

This commit is contained in:
2024-05-31 21:20:13 +02:00
parent 320c666af9
commit 8e821cbdc5
4 changed files with 45 additions and 20 deletions

14
TODO.md
View File

@@ -1,5 +1,11 @@
- add all other options like size etc
- clear screen disabled leads to zoom artifacts when zooming out and
canvas is smaller than screen workaround: using screen copy in
game.Screen. Play copies screen to it and Menu draws it to screen
before drawing the menus
- Clear screen problem:
- it works when hitting the K key, immediately
- its being turned off correctly when entering menu and on when leaving it
- but regardless of the setting, after turning it off, the engine
seems to run a couple of ticks with the old setting before switching
scenes
- looks like a race condition
- obviously with K there are more loops before actually switching
scenes, which doesn't happen with ESC