protonscr

[Command and Conquer Generals - Zero Hour] DXVK affecting pathfinding of Steam version

dxvkclosed
doitsujin/dxvk#3941 · opened 2024-04-05 by Sokol550 · updated 2024-04-06 · 4 comments · github
SSokol550 2024-04-05 github

Command and Conquer Generals - Zero Hour
Framerate capped to 60 FPS.

System information

  • GPU: Radeon 6800 XT
  • Driver: 24.3.1
  • DXVK version: 2.3.1
  • OS: Windows 11 23H2

Apitrace file(s)

https://drive.google.com/file/d/1VVUQD5VDbVPwNIR3vv8yQtt7lkNhNTwr/view?usp=sharing

When playing GenZH via the newly released Steam version, some AI pathfinding is affected in a negative way. Most notably resource gatherers will abandon proper pathing to supply drop points and go across the map often being destroyed by enemies. Tested with and without mods, on a fresh install, with and without RTSS running, and finally with and without DXVK. Disabling DXVK solved the pathfinding issue. The Steam version apparently uses a new executable in comparison to older versions of the game, aside from that I have no clue as to how DXVK is even touching pathfinding code.

Edit: Closed and reopened after additional testing listed for Windows machines, issue continues.

WWinterSnowfall 2024-04-05 github

Granted I don't have this on Steam, but have played it using retail copies. I'm not sure how you can use dxvk with this game since it uses d3d8, which dxvk doesn't (yet) support.

aside from that I have no clue as to how DXVK is even touching pathfinding code.

It's not, it can't. And mind you retail versions are fine and highly likely to use the exact same code.

SSokol550 2024-04-05 github

Forgot to mention I'm using d3d8to9 to make dxvk work. Never had this issue in the past with both retail copies and Origin versions. However, if using d3d8to9 could be enough to screw with things I can close this and clock it up to a me problem.

WWinterSnowfall 2024-04-05 github

It could affect things to some degree, yes.

I'd recommend giving d8vk a go directly and see if you can reproduce the problem there. Apart from some minor menu slowdowns the retail version of the game is known to work well with d8vk, but I admit I never tried it with d3d8to9 + dxvk.

P.S.: Btw, the game engine is known to break at high framerates, so if the Steam release somehow uncapped it, then that may be the issue. Retail versions are capped to 31.2 fps :).

SSokol550 2024-04-05 github

Unfortunately d8vk would only run for about 20 or so seconds in game then crash to desktop, capping the framerate to 30 fps did seem to fix it though. Guess it's just an engine bug. Appreciate the help regardless.

Nothing extracted yet.