protonscr

C&C Generals Zero Hour massive d3d8.log file size

dxvkclosed d3d8
doitsujin/dxvk#4917 · opened 2025-05-16 by doomx85 · updated 2025-05-19 · 3 comments · github
Ddoomx85 2025-05-16 github

"warn: D3D8Device::SetRenderState: Unimplemented render state D3DRS_PATCHSEGMENTS"

This is repeated hundreds of thousands of times and generates logs which can be hundreds of megabytes in size or even exceeding gigabytes after a while. No other warnings were observed in the d3d8 or d3d9 log files.

Software information

C&C Generals Zero Hour, DX8.1, x86, Steam version with GenTool + GenPatcher (these unify all retail & digital versions making this the de facto way of setting up GEN & ZH for nearly all current players)

Original retail versions were compiled with x87 with DRM and The First Decade with SSE while the steam version was recompiled with x87 without DRM so GenPatcher helps to unify all versions IIR to prevent mismatches during online play.
https://www.gamereplays.org/community/GenTool_8.7_and_x87_compatible_executables-t1074850.html
https://legi.cc/genpatcher-support/

System information

  • GPU: RX 6800/ RX 5700 XT
  • Driver: 25.5.1
  • DXVK version: 2.6.1

Log files

warn: D3D8Device::SetRenderState: Unimplemented render state D3DRS_PATCHSEGMENTS

Ddoitsujin maintainer 2025-05-16 github

In fairness, we should probably make sure to only log each render state once to avoid this, just like we already do with QueryInterface spam.

Ddoomx85 2025-05-16 github

In fairness, we should probably make sure to only log each render state once to avoid this, just like we already do with QueryInterface spam.

Thank you for the response doitsujin. IIRC the devs are working on getting the game to dx9 x64 and potentially implementing dxvk.

More info at: https://github.com/TheSuperHackers

WWinterSnowfall 2025-05-16 github

In fairness, we should probably make sure to only log each render state once to avoid this, just like we already do with QueryInterface spam.

We already are on d3d9 side, but there's a couple of d3d8-only states that get logged in d3d8 (and not forwarded to d3d9). I'll make sure they only get logged once as well.

Nothing extracted yet.