calref / cboe

Classic Blades of Exile
http://spiderwebforums.ipbhost.com/index.php?/forum/12-blades-of-exile/
Other
167 stars 41 forks source link

[Windows] Bad graphical flickering in Windowed mode #366

Closed NQNStudios closed 6 days ago

NQNStudios commented 2 weeks ago

cboeGif

Windowed mode is screwy on Windows. I tried it with and without UI scaling. This also affects the scenario and character editors.

The gif I recorded doesn't capture the speed at which the flickering really happens, which is actually much faster.

NQNStudios commented 2 weeks ago

There's another variant of what seems like the same problem:

image

Sometimes, it doesn't flicker, but the graphics are clipped and squished weird. I cannot figure out why sometimes it flickers and other times the graphical glitch is static.

NQNStudios commented 1 week ago

A very mysterious Resized event is getting picked up by SFML, which reports that the window height shrinks from the 430 we expect. Depending on the Windows UI scale setting of my laptop, the height is shrinking to different values -- these values are actually smaller when Windows scale is higher. The shrinking still happens when Windows scale is set to 100%.

I wonder if it has something to do with High DPI handling or lack thereof in SFML/cboe.

https://en.sfml-dev.org/forums/index.php?topic=29282.msg180728#msg180728