delayed response to / after window resizing
Posted: Wed Apr 20, 2016 9:54 am
On SDL2 binary sync'd to d0409bd76aa84a8745ec2ea6d8a5480c8bea0bcd:
Start RnD. If in fullscreen mode, drop out to windowed mode. If zoomed to other than 100%, go to Setup -> Graphics -> Window scaling, click on "100%".
Grab lower right window corner, slowly grow and shrink the window by small amounts, pausing after each small deliberate motion.
Observe that the window title bar reflects the current zoom level -- initially "100%", but will show e.g. "117%" or "42%" or whatever you've set it to. Zoom% reflects the largest version of the game displayable within the current window at normal aspect ratio -- this is normal and means that some window stretching/shrinking motions won't change zoom%.
Now move quickly. e.g. from original 100% zoom, quickly drag to the left (game shrinks), then far to the right (game grows to 100% and is centered in wide window with black space at both ends). With a single grab-click-drag-drag-drag-drag..., zoom from 100% down to small, up to very wide, back and forth 6 or 8 times. Then stop.
For me, the title bar gets stuck at "50%" for a long time -- then eventually it catches up. "Long time" might be 10-20 seconds or longer, depending how much you messed around before letting go.
If, after doing this, you try to interact with game menus while it's still thinking, your mouse actions are queued up and happen later. They probably don't do what you expected, because you clicked on several things trying to get a response; then those actions were eventually reacted to according to future screen layout.
Start RnD. If in fullscreen mode, drop out to windowed mode. If zoomed to other than 100%, go to Setup -> Graphics -> Window scaling, click on "100%".
Grab lower right window corner, slowly grow and shrink the window by small amounts, pausing after each small deliberate motion.
Observe that the window title bar reflects the current zoom level -- initially "100%", but will show e.g. "117%" or "42%" or whatever you've set it to. Zoom% reflects the largest version of the game displayable within the current window at normal aspect ratio -- this is normal and means that some window stretching/shrinking motions won't change zoom%.
Now move quickly. e.g. from original 100% zoom, quickly drag to the left (game shrinks), then far to the right (game grows to 100% and is centered in wide window with black space at both ends). With a single grab-click-drag-drag-drag-drag..., zoom from 100% down to small, up to very wide, back and forth 6 or 8 times. Then stop.
For me, the title bar gets stuck at "50%" for a long time -- then eventually it catches up. "Long time" might be 10-20 seconds or longer, depending how much you messed around before letting go.
If, after doing this, you try to interact with game menus while it's still thinking, your mouse actions are queued up and happen later. They probably don't do what you expected, because you clicked on several things trying to get a response; then those actions were eventually reacted to according to future screen layout.