Reply 3300 of 3949, by Loney974
Regarding refresh bug in Commandos 2:
wrote:I'm encountering another issue regarding windowed mode. I've noticed that when switching to windowed mode (ALT-ENTER), the game […]
I'm encountering another issue regarding windowed mode. I've noticed that when switching to windowed mode (ALT-ENTER), the game does not refresh properly (cf. screenshot). More precisely, I have to move the mouse cursor to "reveal" the menu or the game map, square by square.
I believe it has to do with desktop composition (DWM) somehow, because applying the following compatibility mode fixes the issue, at the cost of reduced performance :
a) [Windows 7] "Disable desktop composition"
b) [Windows 8/10] "Reduced color mode" => 16 bits mode.
wrote:Sorry, I forgot about this: I was going to try it myself but the game always crashed for me for some reason, I should reinstall it.
Anyway, since updating the window area is totally in the hands of DX11 (DXGI), I hardly thinks its a dgVoodoo bug. My tip it's caused by the compat mode.
wrote:I can confirm that behavior with Commandos 2 in v2.54 and WIP36. It doesn't happen when the game is run without any wrapper and it doesn't happen with aqrit's wrapper, so it's definitely dgVoodoo. I've tried changing nearly every setting in dgVoodooCpl.exe, so it doesn't appear to be correctable with any setting.
Dege, applying a compatibility mode is a workaround for windowed mode to work properly, otherwise the game works fine natively with dgvoodoo2 in fullscreen mode. As Osprey said, since there isn't any bug when the game is run without any wrapper and it doesn't happen with aqrit's wrapper, I also believe this problem is a side effect of dgvoodoo2.
By the way, my tests are based on the GOG version of Commandos 2 + dgVoodoo 2.54/WIP37, installed on Windows 10 and powered by an Nvidia GPU (GTX 1060). Should you need more information to dig in, feel free to let me know.
Thanks for your help.