elishacloud / dxwrapper

Fixes compatibility issues with older games running on Windows 10/11 by wrapping DirectX dlls. Also allows loading custom libraries with the file extension .asi into game processes.
zlib License
1.15k stars 82 forks source link

Wargames low FPS issue #227

Closed NuisanceRFB closed 8 months ago

NuisanceRFB commented 9 months ago

Having some trouble with getting Wargames to run smoothly Alot of the functions like the main menu, briefing screen, scrolling the map and selecting units in game is jerky and slow. Running it with EnableWindowMode and WindowModeBorder has much better results, but the in game mouse will only show while the windows mouse is in the top left corner. playing this way by moving the window into the corner or expanding the window does make it better, but its out of sync with the ingame buttons and units

out of sync 1 out of sync 2

elishacloud commented 9 months ago

You could try disabling vsync or enabling fullscreen windowed mode.

elishacloud commented 9 months ago

I think this game does best at 30FPS, because that is how it was expected to run. Try with this latest build, this has some new features to allow setting the FPS timer better: dxwrapper.zip

NuisanceRFB commented 9 months ago

Sweet, using the new Dxwrapper sorted it out mint. weird though as I installed the same build from the main wargames page onto my main computer and had zero issues,

elishacloud commented 9 months ago

Can you upload the log files? Is this a 3D game?

Mitradis commented 9 months ago

This basic TFT monitor problem.

This game "the battle for middle earth". Game have 30 FPS hard cap limit. Same limit have games on same engine: tiberian wars and red alert 3 and the battle for middle earth 2. dxwrapper-game.zip

GTA Vice City render 30 fps (as say all programs), but have smooth image on 60/75hz. How it work? And why other games like TBoMe cant runs same smooth.

cnc ddraw (https://github.com/FunkyFr3sh/cnc-ddraw) have function minimum fps. And it help with making image more smoother (in strategies when moving the camera). With this feature game (wrapper?) always render 60fps. Good for old games.

elishacloud commented 8 months ago

Thanks for the logs. Did you intend to use the debug build for this? That build is a lot slower. Here is the latest build, it should be a lot faster: dxwrapper.zip

As far as a delay to reduce the FPS of a game, I just added that to dxwrapper a couple of weeks ago. It is called LimitPerFrameFPS. It can precisely limit the frame rate based on a high performance timer to exactly what your frame rate is. So for example, if you frame rate is 59.933 you can specify that in dxwrapper, since the frame rate is not actually ever exactly 60.

elishacloud commented 8 months ago

This issue should be fixed with the latest release: https://github.com/elishacloud/dxwrapper/wiki/WarGames