ppy/osu-framework

Game window sometimes does not respond to window size changes

frenzibyte opened this issue · 0 comments

This happens quite rarely, but I managed to have it happen in TestSceneWindowModeResizedEvent while I was investigating ppy/osu#26865 (they don't seem to be relevant at first glance since I can repro the confinement incorrectness while client and window size are both correct).

CleanShot 2024-02-18 at 18 05 21

The window was originally set to display on one quarter of the screen. I toggled it to fullscreen mode using yabai -m window --toggle zoom-fullscreen, then I noticed the game rendering looking a bit pixelated, and the window size desynchronised from the client size (window size matches new window size, client size matches old window size).

EDIT: Logging the Scale outputs the following: Scale: 0.50714284. This indicates that the issue lies within Scale, and neither the window nor the renderer were able to fetch the correct drawable size (notice game window looking pixelated). Likely going to be escalated to SDL, since we are already doing our due diligence with fetching the Scale value.