GZDoom perfomance issue
Moderator: GZDoom Developers
Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!
If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.
We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!
If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.
We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
-
- Posts: 34
- Joined: Tue Dec 06, 2022 7:04 pm
- Operating System Version (Optional): windows 10 home
- Graphics Processor: nVidia with Vulkan support
Re: GZDoom perfomance issue
Sorry for the late reply' just been busy so i set gzdoom to windowed mode to test the alt-tab causing the issue from loss of focus and it still lowered its priority so it can't be because it is losing focus from alt-tab as gzdoom is it seen in the background running and now the text when gzdoom is started looks slightly corrupted you can still tell what is says but it don't look normal i can show you what it looks like as soon as i know how to capture a screenshot.
-
- Posts: 13881
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: GZDoom perfomance issue
The recent changes won't be in the latest version of GZDoom until a new release.undeadgamer9609 wrote: ↑Sat Feb 01, 2025 11:52 pm Sorry for the late reply' just been busy so i set gzdoom to windowed mode to test the alt-tab causing the issue from loss of focus and it still lowered its priority so it can't be because it is losing focus from alt-tab as gzdoom is it seen in the background running and now the text when gzdoom is started looks slightly corrupted you can still tell what is says but it don't look normal i can show you what it looks like as soon as i know how to capture a screenshot.
Another release is in the works (technically, one always is anyhow) but it probably won't be available for at least a week or two yet. I'd like to wrap up the loose ends from this thread first and remove the priority changing code and put in the optional background limiter which will be turned on by default.
There might be other loose ends that others need to wrap up too before an official release can be made.
The background limiter will override the mentioned cvar - that cvar was mostly put in in order to allow cheap crappy g-sync/free-sync setups to not flicker the screen. If you tab out that should no longer be a problem.
-
- Posts: 34
- Joined: Tue Dec 06, 2022 7:04 pm
- Operating System Version (Optional): windows 10 home
- Graphics Processor: nVidia with Vulkan support
Re: GZDoom perfomance issue
I need to screenshot a new issue all the text looks slightly corrupted but i don't know how to make a screenshot this is i noticed yesterday so this is very recent.
-
- Posts: 34
- Joined: Tue Dec 06, 2022 7:04 pm
- Operating System Version (Optional): windows 10 home
- Graphics Processor: nVidia with Vulkan support
Re: GZDoom perfomance issue
Never mind i just remembered to check and saw the same issue on the board sorry.
-
- Posts: 13881
- Joined: Tue Jan 13, 2004 1:31 pm
- Preferred Pronouns: She/Her
Re: GZDoom perfomance issue
https://github.com/ZDoom/gzdoom/commit/ ... 4d8c707ca9
So as of that commit:
So as of that commit:
- vid_lowerinbackground is now the method that lowers GZDoom's CPU usage in the background
- Priority changing code is removed entirely. It still exists for the CPU speed calc in Windows but it does it and then switches it to whatever priority GZDoom was originally launched with. (Note that the speed calc code requests 'realtime' priority - I believe Windows NT and later automatically demotes that to 'Highest' priority if the app is not in Administrator mode)
- vid_lowerinbackground overrides vid_dontdowait - if for some reason you can't afford to have GZDoom lower its FPS then simply set vid_lowerinbackground to false.