High CPU usage in GZDoom

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
User avatar
Doctrine Gamer
Posts: 393
Joined: Wed Jan 30, 2013 1:22 pm

High CPU usage in GZDoom

Post by Doctrine Gamer »

Hello friends.

When I use GZDoom on my machine processor usage varies from 50% to 70%, I use a processor I5 and a memory with more than 4 gb, so I do not understand how this program can consume as much.

Not logical that he pull 70% of the CPU. In modern games like DOOM 3 BFG Edition CPU usage does not pass or 40% and the ZDoom varies between 25% to 40%.

Even if I turn off all filters and put everything on low, high CPU consumption is the same.

Can someone help me.

(sorry my bad english)
User avatar
everamzah
Posts: 149
Joined: Tue Aug 20, 2013 10:17 am
Location: Augusta, ME.
Contact:

Re: High CPU usage in GZDoom

Post by everamzah »

CL_CAPFPS 1 should cut your CPU usage down. :) I'm assuming by "put everything on low" you are referring also to the resolution.
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Re: High CPU usage in GZDoom

Post by Caligari87 »

GZDoom also has all the extra features stacked on top of the old Doom code, which isn't as optimized for modern systems. Barring a complete rewrite of the engine, it's likely to stay that way. Doom3 uses less CPU because it pulls a lot of its needs from the graphics card, while GZDoom is more CPU-dependent and doesn't use the GPU as much.

8-)
User avatar
GooberMan
Posts: 1336
Joined: Fri Aug 08, 2003 12:57 am
Location: Helsinki, Finland

Re: High CPU usage in GZDoom

Post by GooberMan »

The high CPU usage happens even on stock Doom maps. I suspect ZDoom ups its thread priority and doesn't yield too often, but that's all speculative until I actually look in to the code.
User avatar
Doctrine Gamer
Posts: 393
Joined: Wed Jan 30, 2013 1:22 pm

Re: High CPU usage in GZDoom

Post by Doctrine Gamer »

Caligari_87

Is there any program similar to GZDoom not use many CPU resources :?:

everamzah


Thank you! I will use this command to see if it solves anything. :thumb:

GooberMan

I also do not much idea what it is. :shrug:
User avatar
everamzah
Posts: 149
Joined: Tue Aug 20, 2013 10:17 am
Location: Augusta, ME.
Contact:

Re: High CPU usage in GZDoom

Post by everamzah »

I should have mentioned, but all cl_capfps does is limits your framerate to 30. Under most circumstances that's probably not what you want.
User avatar
Doctrine Gamer
Posts: 393
Joined: Wed Jan 30, 2013 1:22 pm

Re: High CPU usage in GZDoom

Post by Doctrine Gamer »

everamzah

not but anyway thanks for the help
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: High CPU usage in GZDoom

Post by Blue Shadow »

everamzah wrote:I should have mentioned, but all cl_capfps does is limits your framerate to 30. Under most circumstances that's probably not what you want.
Alternatively, though it's not the exact same thing, there is [wiki=Display_options#Vertical_sync]vsync[/wiki], which locks the framerate to the monitor's refresh rate.
User avatar
Kappes Buur
 
 
Posts: 4122
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: High CPU usage in GZDoom

Post by Kappes Buur »

Recently there was a bit of a discourse on the subject http://forum.zdoom.org/viewtopic.php?f=12&t=46242
explaining why the CPU is working overtime.
User avatar
Doctrine Gamer
Posts: 393
Joined: Wed Jan 30, 2013 1:22 pm

Re: High CPU usage in GZDoom

Post by Doctrine Gamer »

Thanks all for taking my question and I have to use the ZDoom does not weigh on my CPU. I see no other alternative.

like GZDoom but with that high consumption of memory rather I use the ZDoom even he does not have OPENGL. sad but true.
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: High CPU usage in GZDoom

Post by edward850 »

everamzah wrote:I should have mentioned, but all cl_capfps does is limits your framerate to 30.
35
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: High CPU usage in GZDoom

Post by Graf Zahl »

The main reason for that high CPU usage is the background OpenGL driver thread. That will occupy one CPU core fully. Not even capping the FPS will help with that. Take that one out and you'll be back to the 40% of other software.

Also, enabling VSync won't help much at all. From what I gathered, the OpenGL driver performs active waiting for syncing, i.e. it doesn't yield the CPU at all.

That means that 50% of CPU resources are already taken, and on top of that come several other background threads, e.g. the sound engine.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: High CPU usage in GZDoom

Post by _mental_ »

Graf Zahl wrote:Also, enabling VSync won't help much at all. From what I gathered, the OpenGL driver performs active waiting for syncing, i.e. it doesn't yield the CPU at all.
It depends on particular OS and drivers.
On my pretty old PC with Win7, GeForce 9800, outdated nVidia drivers (can't check exact version at the moment) it did help. On OS X it does help too on any machine I tried. Have no idea about Linux.
So, VSync is a good option to try it out in order to minimize CPU usage.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49073
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: High CPU usage in GZDoom

Post by Graf Zahl »

Odd. I previously had a Geforce 9600 with Win7 and enabling VSync didn't do much about performance. I haven't checked ever since, though, so maybe something has changed in the drivers.
Guest

Re: High CPU usage in GZDoom

Post by Guest »

Hi.
I had same problem even on a Core i7 4.5 Ghz with a 2080 Ti.. one cpu core would be at 90-100% usage all the time!

I also have Beautiful Doom and Hi resolution textures on AND playing at 3440x1440..... There was some lagg rarely BUT!

Then I changed to VULKAN render, and bom! cpu is now 5-10% MAX on EACH core! seriously! and the game runs much better and smooth overall. This is even as it both before and now actually was runing at 60fps.

The OpenGL thing just suck compared to Vulkan!
Post Reply

Return to “General”