dxwrapper icon indicating copy to clipboard operation
dxwrapper copied to clipboard

[Dd7to9] + dxvk on WINE: Gothic.v1.08k low fps (3-4fps)

Open telychko opened this issue 8 months ago • 8 comments
trafficstars

I've installed latest release of dx7.games into the Gothic game. It runs ok, no problem, but FPS is about 3 or 4.

Alternatively, the game was ran with no problem 60+FPS with dgVoodoo2_78_2. But, they has regress, and Gothic does not work at all with their latest release. Even more, recently their project stalled.

Environment:

  • Gothic version 1.08k
  • dxvk-2.5.3
  • dx7.games v1.2.7500.25
  • wine-10.3

Thank you!

telychko avatar Mar 20 '25 20:03 telychko

  1. Remove any and all extra wrappers that are not part of the OS, like dxvk, etc.
  2. Delete the old dxwrapper log file.
  3. Download and use this profiling build: dxwrapper.zip
  4. Send me the dxwrapper log file. It will be very large so you will probably need to zip it to attach it. It will have profiling data to help me see what is running slow in this game.

elishacloud avatar Mar 20 '25 22:03 elishacloud

Thank you for the reply.

I ran the profiling build in environment as clean as possible. I've removed any extra libs like dxvk and launch the game without gamescope. It still looks like a slide show, so I got a log file. See attachments.

dxwrapper-log.zip

telychko avatar Mar 20 '25 22:03 telychko

I see a lot of logs like this:

300 17:32:07.473 m_IDirect3DDeviceX::DrawIndexedPrimitiveVB (09726220) hr = DD_OK Timing = 13ms

It appears to be a slowdown when drawing. I think it is related to texture copying because of color keying.

Here is a test build: dxwrapper.zip

Note: you may see some graphical issues. But will test if this is the issue.

elishacloud avatar Mar 20 '25 23:03 elishacloud

Unfortunately, nothing changes. I saw no graphical issues, and it is still slide-show. Just in case, I've attached log file for this run.

dxwrapper-test-log.zip

telychko avatar Mar 20 '25 23:03 telychko

Interesting. I just checked one of the frames as an example. It took 188ms. 47ms of that was from Draw calls. The other 141ms is not accounted for in the profiling logs. This means it is being slowed down by something not logged. I thought I logged all pertinent places that could cause slowdown.

Try enabling these options and see what happens:

  • SingleProcAffinity - this is in case the game has threading issues.
  • ForceVsyncMode - this will disable the waiting for vsync which is not deleted well in dxwrapper.
  • DdrawForceMipMapAutoGen - this will ensure that dxwrapper is not creating MipMaps and lets Driect3D9 do it.

Make sure that these are the only two options enabled besides Dd7to9.

Edit: added DdrawForceMipMapAutoGen to the list.

elishacloud avatar Mar 21 '25 01:03 elishacloud

I tried these options. Some graphical issues are appeared when I set DdrawForceMipMapAutoGen = 1. See screenshots. The rest is unchanged (still 2-4 fps).

Image

Image

dxwrapper.ini changes
@@ -30,7 +30,7 @@
 WinVersionLie              = off
 WinVersionLieSP            = 0
 HandleExceptions           = 0
-SingleProcAffinity         = 0
+SingleProcAffinity         = 1

 [DDrawCompat]
 DDrawCompat20              = 0
@@ -48,7 +48,7 @@
 DdrawAutoFrameSkip         = 0
 DdrawEmulateSurface        = 0
 DdrawEmulateLock           = 0
-DdrawForceMipMapAutoGen    = 0
+DdrawForceMipMapAutoGen    = 1
 DdrawFixByteAlignment      = 0
 DdrawEnableByteAlignment   = 0
 DdrawIntroVideoFix         = 0
@@ -71,7 +71,7 @@
 AnisotropicFiltering       = 0
 AntiAliasing               = 0
 EnableVSync                = 0
-ForceVsyncMode             = 0
+ForceVsyncMode             = 1
 OverrideRefreshRate        = 0
 LimitDisplayModeCount      = 0
 CustomResolutionWidth      = 0

telychko avatar Mar 21 '25 03:03 telychko

Alternatively, the game was ran with no problem 60+FPS with dgVoodoo2_78_2. But, they has regress, and Gothic does not work at all with their latest release. Even more, recently their project stalled.

this is not the case, if you notify Dege on vogons he'll take a look.

Squall-Leonhart avatar Mar 21 '25 12:03 Squall-Leonhart

Alternatively, the game was ran with no problem 60+FPS with dgVoodoo2_78_2. But, they has regress, and Gothic does not work at all with their latest release. Even more, recently their project stalled.

this is not the case, if you notify Dege on vogons he'll take a look.

dgVoodoo is a closed source project, and Dege put on pause the development. I would like to use open-soure solution. Will be great if we solve the problem here.

I've compared with the dgVoodoo just for proof that the game can produce about 60FPS

telychko avatar Mar 21 '25 13:03 telychko

Can you try with the latest build? I added some fixes that should improve the performance. Here is the latest build: dxwrapper.zip

elishacloud avatar Oct 04 '25 02:10 elishacloud

Can you try with the latest build? I added some fixes that should improve the performance. Here is the latest build: dxwrapper.zip

Hi. Thank you for your work. Unfortunately, performance has been improved not enough for comfortable gaming. Now, it works on about 8-9 fps

telychko avatar Oct 04 '25 15:10 telychko