#Out of VRAM? Stutter in Diablo IV High-res texture pack after alt-tab

10 messages · Page 1 of 1 (latest)

feral ether
#

The most of the games run fine for me with LS, but not Diablo IV - it gets very choppy

I've got RTX 3080 10GB version, 24GB system RAM, Windows 11 23H2, LS 2.11* with DGXI, 4k primary screen + HDR, 2nd FullHD SDR monitor, drivers 565.90 (tried older too)

When I use LS with Diablo IV, High Res Texture Pack, and textures quality set to High (Ultra is for 32G+ RAM), it gets slower, then extremely choppy.
Unless... I start LS soon after launching the game and it works fine for longer time until I alt-tab. When returning to game, it gets choppy again.
I checked RTSS and it shows that the graphics RAM usage rises and rises, and then VRAM usage is close to max whether I have the game alone or with LS. The issue existed before - in the base game and (*) older LS too. Non-DXGI capture methods don't work well at all. It got slow a few times without alt-tabbing too (notifications?)

My hypothesis is that Diablo IV loads & streams assets to fill the graphics RAM entirely. If I start LS framegen soon, then it allocates enough RAM, and the game tries to utilize the limited rest. But if LS is launched later on, graphics RAM is already filled, and there's more graphics RAM requested than available. It might be the same case when alt-tabbing - the game might eat the remaining VRAM, and there would be not enough left for LS.

Could you check if it's the case, and if so, provide a way to get around it? Like pre-allocate VRAM for LS before the game is launched or just after that?
Perhaps, the problem is elsewhere?

maiden edge
#

try Cuda Sysmem Fallback Policy in nvcp this remove dedicated memory so ls will use gpu vram instead of ram and game maybe will use about 1go or so from ram but still run ok

feral ether
#

Thx
It seemed to run a little better, but then I alt-tabbed and it got bad again

feral ether
#

Another mitigations which I use except for not alt-tabbing and NVCP settings, as they're not enough for me:

  • Don't ever click notifications while playing. It's like alt-tabbing. I restricted myself to using phone for that.
  • Close as many graphical apps as you can, before playing.
    • Use apps like System Informer to find the invisible ones using Web View

Other areas to check

  • Even though I'm running out of VRAM at >9GB total, Diablo IV uses only around 6
  • [ ] Minimize the number of overlays
    • [ ] RTSS is used in performance testing and it's automatically loaded by MSI Afterburner if you enable min/max/1% low monitoring, even without turning them on
    • [ ] Xbox Game Bar - it might take some VRAM, but I kept it on for HDR screenshots (Win+Alt+PrtSc)
  • [ ] Turn off secondary monitor to limit the resolution
maiden edge
#

try edit ls file name
losslessscaling. exe.config make a back up copie than paste and replace all lines with those :

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<gcServer enabled="true"/>
<gcConcurrent enabled="true"/>
<gcLatencyMode value="SustainedLowLatency"/>
<Thread_UseAllCpuGroups enabled="true"/>
<Thread_UseNewSynchronizationContext enabled="true"/>
<AppContextSwitchOverrides value="Switch.System.GC.AllowVeryLargeObjects=true;Switch.System.Threading.UseNetCoreTimer=false"/>
<JITMinOpts enabled="true"/>
<PreferThreadPoolThreads enabled="true"/>
<EnableFrameBufferOptimization enabled="true"/>
</runtime>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>

try and see u can try other as last tweak config.ini and use dxgi_frametime_buffer_size = 15 make it 2 and up try best for your situation this the higher need more buffer latency for smooth gameplay lower is better latency little less resources so lower from 15 until it's good for u and this game

heady wagon
maiden edge
# heady wagon This losslessscaling.exe.config setting is for the application interface only an...

I know but some setting i forget where read it about 100mb or so less plus lowest possible input lag when fps drop he still can kind play and aim

those setting are from you and your best setting suggestion ty🙂 BTW I just remove legacy jit and change gclatency to sustained and to get top latency u can add magpie game mode disable flip without scaling let's open not minimized u get real time gaming no latency and speed mouse adjustment u can use too better than ls one and smoother i hope ths can do such tweaks

maiden edge
#

Bro vram usage is insane 😳

feral ether
# maiden edge Bro vram usage is insane 😳

Thanks!
I use High, as I've got only 24GB regular RAM (old rig, and CPUs in recent years usually = scandal / disappointment). However I can see much better quality having high res texture pack installed.
Because of the dynamic VRAM allocation I can't find a way to measure the impact of graphics settings on the VRAM usage. But I don't want to go below High + extra textures. RTSS shows > 9GB total RAM used, but only around 6 for the process.

My 3080 has "only" (can't believe I say that) 10 GB RAM. The other settings are maxed / close, except for CPU-related and RT reflections and foliage being disabled, RT lights medium. Having 4k screen, I play at 4k with DLSS, but I could go with 3440x1440 virtual resolution. HDR implementation is one of the best I've seen in games to the point I've installed Windows 11 on 4790K @4.4GHz to fix broken Windows 10 HDR implementation. It looks so good on my LG CX 55" standing on my desk (yes).

This sounds like a lot of VRAM needed. But if I have a web browser or other apps in background, having constant VRAM usage, the game runs fine. I close everything I can for this game, and having a dedicated buffer for LS would make my day.

It's got G-Sync display, but natively starting from theoretically 20Hz, but in reality 40Hz. 20-40 range is done by doubling the frames, so the TV's stats overlay shows drops to 40, and then from 80, down. This transition is visible, especially to someone with motion sickness. It's usually because of my old CPU and limited RAM, so the frame pacing is out too.

Despite adding a lot of lag at so high frame times, LS fixes that and makes my games playable and enjoyable. Warhammer Space Marine and Darktide wouldn't be fun at all without LS. Obviously, I want the same for Diablo IV. Lowering the graphics settings might help, but it looks so much better at high.

maiden edge
#

try deacrease dlss to balanced but use dlss tweaker or optiscaler 7.0 "with FG if u want add async for better perf"
change preset c sharper and increase sharpness + add more negative lod bias optiscaler or nvidia inspector maybe latest specialk for lod bias