GZDoom perfomance issue
Moderators: GZDoom Developers, LZDoom Developers, UZDoom Developers
Forum rules
Please be as descriptive as possible in your posts (list your hardware and operating system, the version of the source port you are using, any mods you are running and how they're being loaded, etc.)
This will help others to give you a solution!
Please be as descriptive as possible in your posts (list your hardware and operating system, the version of the source port you are using, any mods you are running and how they're being loaded, etc.)
This will help others to give you a solution!
-
undeadgamer9609
- 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.
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.
-
undeadgamer9609
- 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.
-
undeadgamer9609
- 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.
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.