GZDoom perfomance issue

Need help running various source ports? Did your computer break? Ask here.

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!
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

Post by undeadgamer9609 »

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.
User avatar
Rachael
Posts: 13967
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: GZDoom perfomance issue

Post by Rachael »

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.
The recent changes won't be in the latest version of GZDoom until a new release.

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.
Graf Zahl wrote: Sat Feb 01, 2025 10:18 am There's the vid_dontdowait CVAR, but for obvious reasons it will be ignored if FPS are not capped.
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

Post by undeadgamer9609 »

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

Post by undeadgamer9609 »

Never mind i just remembered to check and saw the same issue on the board sorry.
User avatar
Rachael
Posts: 13967
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: GZDoom perfomance issue

Post by Rachael »

https://github.com/ZDoom/gzdoom/commit/ ... 4d8c707ca9

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.
This should tie up any loose ends for this issue.
Post Reply

Return to “Technical Issues”