protonscr

GTA IV Loading Times

dxvkclosed game bugd3d9
doitsujin/dxvk#2982 · opened 2022-10-08 by Jax765 · updated 2022-10-08 · 13 comments · github
JJax765 2022-10-08 github

Loading times when using DXVK are noticeably longer compared to running the game in its vanilla state. One example being the initial loading into the map from the main menu.

Software information

GTA IV Complete Edition, Steam version

System information

  • GPU: RTX 3080
  • Driver: 516.94
  • DXVK version: 1.10.3
  • Windows 10 Home

Log files

BBlisto91 2022-10-08 github

I tried timing it on my AMD setup on windows 10. R9 380 and Intel i5-6600k
Both with native and dxvk from i pressed start game to i was in Niko's appartment took 15 seconds. Maybe dxvk was half a second slower.

Does this always happen. Do you alt tab before you enter loading screens?

KK0bin maintainer 2022-10-08 github

Loading from the main menu into the game takes 13 seconds for me with DXVK. (AMD 5900X + RTX 3090)

I don't know how long it takes with Nvidias D3D9 driver but I don't really see a good reason to invest any time into this when the difference is likely around 5 seconds at worst.

Maybe you could at least provide some numbers.

JJax765 2022-10-08 github

No alt-tabbing. These are the times I get between pressing "start game" and the game loading into the apartment.

D3D9 - 15 seconds
DXVK - 33 seconds

Should probably also mention that I'm using an i7 12700k. Game is installed on an NVME SSD. Tested multiple times, the loading time difference is consistent between the two. I'm also using a gsync monitor if that has any effect.

BBlisto91 2022-10-08 github

Can you quickly check with latest master? https://github.com/doitsujin/dxvk/actions/runs/3204372286
Not that i expect a difference.

JJax765 2022-10-08 github

Loading times were worse with that version. 42 seconds instead of 33.

KK0bin maintainer 2022-10-08 github

Do you have any mods installed? Also are you playing the base game or the DLC?

Loading consistently takes 14 seconds for me.

JJax765 2022-10-08 github

Base game. I tested with a clean vanilla install, and then with mods installed. Same result both times. Is your version of the game the Complete Edition on Steam?

KK0bin maintainer 2022-10-08 github

Complete edition on Steam, literally just downloaded for testing it.

BBlisto91 2022-10-08 github

I will check on windows on my Nvidia setup later

JJax765 2022-10-08 github

Think I might have found a cause. Testing further to narrow things down first.

JJax765 2022-10-08 github

Seems the combo of dxvk & a launch command, "-managed", was causing the issue. Removing that command fixed it. Though without it, the game does seem quite a bit more stuttery even when it's at a locked 60fps. Feels much less smooth.

KK0bin maintainer 2022-10-08 github

If it's stuttery, that's the fault of the game. I've already optimized DXVK to work well with the way the game handles its textures without that option.

KK0bin maintainer 2022-10-08 github

Loading times with the -managed option seems to depend on the absolute frame rate. So make sure your vsync setting is the same when comparing DXVK and the Nvidia D3D9 driver.

If I disable vsync, the loading screen runs at 1000+ FPS and the loading is done in 14 seconds (just like without the managed option). If vsync is enabled, it's locked to 165 FPS (refresh rate of my screen) and loading takes 23 seconds. Both of those are with DXVK.

EDIT: I checked your logs and you've configured DXVK to force vsync.

d3d9.presentInterval = 1

That's why the loading times are that much slower for you.

Nothing extracted yet.