ZDoom / gzdoom

GZDoom is a feature centric port for all Doom engine games, based on ZDoom, adding an OpenGL renderer and powerful scripting capabilities
http://zdoom.org
GNU General Public License v3.0
2.33k stars 526 forks source link

[BUG] GZD starts stuttering after 30mins #2569

Open pagb666 opened 1 month ago

pagb666 commented 1 month ago

GZDoom version

4.13-pre19 (Also happened with earlier builds of GZD from the second half of 2023)

Which game are you running with GZDoom?

Doom 2

What Operating System are you using?

Windows 10

Please describe your specific OS version

Windows 10 Enterprise LTSC 21H2 10.0.19044.4291

Relevant hardware info

AMD R5 3600 + RTX3060ti + 32gb & AMD R7 7800X3D + RTX4070 + 32gb

Have you checked that no other similar issue already exists?

A clear and concise description of what the bug is.

As title says, gameplay starts stuttering after hitting 30mins of opening GZDoom. I don't know if it is a exact 30min mark, haven't performed a test myself, as it is very time consuming but it is very close to it... if not exactly 30mins. It doesn't have to be strict gameplay, as it also happens if I alt+tab between levels to check the internet. Only quick way to fix it it doing alt+enter twice to go windowed and back to fullscreen. (Is it a renderer thing then? Using Vulkan, btw)

Video: https://www.youtube.com/watch?v=SQFEF21yekE

I started experiencing this when I upgraded my Ryzen 3600 with a 3060ti, this didn't happen prior to it with my 1070. I have now completely changed my computer eversince, with a 7800X3D with a 4070, as well as the windows installation and GZD installation, as GZD didn't work after upgrading until I nuked it and the config. It continues to happen. (Using Windows 10 LTSC 10.0.19044.4291 with latest video drivers and all)

It also happens if recording footage with either Nvidia's Shadowplay or OBS. And no, it doesn't matter if I record footage for 5mins in the whole 30mins or the whole 30mins, it happens.

Steps to reproduce the behaviour.

Explain how to reproduce

  1. Run GZDoom
  2. Keep it open, playing on and off for around 30mins
  3. Profit

Your configuration

https://gist.github.com/pagb666/3721c46c253a3e0dae6710ef15f664f4

Provide a Log

No response

coelckers commented 1 month ago

What does the Task manager say about memory consumption? Does it stay at the same memory range or does it continuously increase.

That said, it doesn't happen for me. Apparently something is throttling down your system after a certain time. Is GZDoom the only engine causing this? If so, do you let it run at uncapped frame rate or have you set a maximum/vsync?

pagb666 commented 1 month ago

Hey!

I'm running VSync ON. It only happens with GZDoom, haven't experienced that with any other game/engine so far. I will monitor the RAM usage next time I play for more than a quick fix.

Please note the bit that it also happened on my previous computer, and only after I moved from the 1070 to a 3060ti card.

pagb666 commented 1 month ago

So I gave it a try. And after three levels which took me roughly 19mins, 3mins and 4mins... I got the stutter on the fourth level 2 minutes in (Video: https://youtu.be/iqFwqaJibG0 ). So I'll say I'm adamant about the 30 minutes thing after a whole year of experiencing this.

I had the Task Manager open the whole time and GZD stood at ~1,1Gb of RAM usage the whole time.

madame-rachelle commented 1 month ago

Do you have a hardware monitor running? How are your temps and fan speed? Are they kicking up a notch when the stutter starts?

pagb666 commented 1 month ago

CPU is usually at around 1%-4% while running GZD playing simple limit removing levels, GPU is at 30%-40% (running internal 8K resolution). I'll have to play for yet another half an hour with MSI Afterburner to check if they kick up... But the fans don't speed up when the stutter starts, so I really doubt that's it. This case is very cool.