FunkyFr3sh / cnc-ddraw

GDI, OpenGL and Direct3D 9 re-implementation of the DirectDraw API for classic 2D games for better compatibility with Windows 2000, XP, Vista, 7, 8, 10, 11, Wine (Linux/macOS/Android) and Virtual Machines
https://discord.gg/afWXJNDDF5
MIT License
2.13k stars 143 forks source link

refresh_rate not work #246

Closed Mitradis closed 9 months ago

Mitradis commented 9 months ago

Tested in AOE2, Tzar, TS. I set 75hz and wrapper ignore it and set 60hz. Monitor support 75hz with selected game resolution.

FunkyFr3sh commented 9 months ago

just tested it again with the latest version and it's working fine for me. You sure you got "windowed=false"?

Latest version will check if the value you set is supported, if not, it will keep the current hz setting that you've got in windows

Mitradis commented 9 months ago

For me it not work as i say. Always 60hz. Default config, only refresh_rate=75 ddraw.txt

FunkyFr3sh commented 9 months ago

I need a log file, otherwise I can't do much because I can't reproduce it here: https://github.com/FunkyFr3sh/cnc-ddraw/issues/44

Mitradis commented 9 months ago

cnc-ddraw-1.log

cnc-ddraw-1.log

FunkyFr3sh commented 9 months ago

need another log, but with "resolutions=2"

Mitradis commented 9 months ago

cnc-ddraw-1.log

ddraw.txt

FunkyFr3sh commented 9 months ago

can you check if 1152x864 works in 75hz mode? 1024x768 @ 75hz only supports "dmDisplayFixedOutput = DMDFO_DEFAULT" on your system and I think that's the problem.

DMDFO_DEFAULT means that it only works without upscaling (black bars on the sides). This is not about the cnc-ddraw upscaling, it about a setting in windows or your drivers.

FunkyFr3sh commented 9 months ago

Here's a test build that forces to run with black bars (DMDFO_DEFAULT)

ddraw.zip

Mitradis commented 9 months ago

still 60. i no see problem in my system, all other wrappers work fine.

FunkyFr3sh commented 9 months ago

Oh I forgot to mention, you have to try that test build with opengl/gdi ... it isn't supposed to work with auto/direct3d

Mitradis commented 9 months ago

everywhere 60. Tzar, where i testing it, have only 1024*768 res.

FunkyFr3sh commented 9 months ago

if tzar only got 1024x768 then try this

width=1152 height=864

FunkyFr3sh commented 9 months ago

I think this here could fix it for you:

ddraw.zip

Mitradis commented 9 months ago

yes, now 75. Ty!