Custom FPS cap

Moderator: GZDoom Developers

dascott
Posts: 20
Joined: Sun Apr 18, 2010 11:53 pm

Custom FPS cap

Post by dascott »

Trying this again.

ZDoom and its ports will use every ounce of available power, on modern hardware resulting in framerates in the 1000's and generating a lot of useless heat and even crashing some PCs. (laptops especially) My friend is stuck playing with the 35 cap and hates it.

Vsync does not lower cpu usage.

35 fps as the only cap option is terrible. It is choppy and jerky and is one of the large reasons to play this port to begin with - as others don't even have the option to play past 35.

Please allow setting some arbitrary FPS cap. Even if coding limits it to a fixed cap (multiples of 35? who knows)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Custom FPS cap

Post by Graf Zahl »

'no'ing this again...
User avatar
InsanityBringer
Posts: 3392
Joined: Thu Jul 05, 2007 4:53 pm
Location: opening the forbidden box

Re: Custom FPS cap

Post by InsanityBringer »

dascott wrote:generating a lot of useless heat and even crashing some PCs. (laptops especially)
I'm yet to see that ever happen myself. Even on low-end machines.
dascott
Posts: 20
Joined: Sun Apr 18, 2010 11:53 pm

Re: Custom FPS cap

Post by dascott »

Is it a no because you think it is useless or because it would be hard to implement? The distinction is important, please.
dascott
Posts: 20
Joined: Sun Apr 18, 2010 11:53 pm

Re: Custom FPS cap

Post by dascott »

InsanityBringer wrote:
dascott wrote:generating a lot of useless heat and even crashing some PCs. (laptops especially)
I'm yet to see that ever happen myself. Even on low-end machines.
Its not low end machines that are the problem, probably.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Custom FPS cap

Post by Project Shadowcat »

Turn on vsync or turn on the default 35 FPS cap. There's no need to be fighting about it. :|
dascott
Posts: 20
Joined: Sun Apr 18, 2010 11:53 pm

Re: Custom FPS cap

Post by dascott »

dascott wrote:
Vsync does not lower cpu usage.

35 fps as the only cap option is terrible. It is choppy and jerky and is one of the large reasons to play this port to begin with - as others don't even have the option to play past 35.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Custom FPS cap

Post by Project Shadowcat »

Get a new CPU, then. Read Graf's reply on your original topic. I actually turn on vsync to preserve my hardware as best as I can for every game I play. So if it's still at 100%, time to look into a new core.

EDIT: So then what would a custom cap solve in the first place?
dascott
Posts: 20
Joined: Sun Apr 18, 2010 11:53 pm

Re: Custom FPS cap

Post by dascott »

.... but for the third time, vsync doesn't change CPU usage. Which part of that is sailing over your head? Maybe its just a GL thing? Maybe it -should-, but its just broken?

A custom cap would let Doom run at 200 fps while using 1% CPU. I'm running an i7 ffs, I'm not the one crashing, but its sure as hell loves to spin up my fan to 747 levels.
Blzut3
 
 
Posts: 3202
Joined: Wed Nov 24, 2004 12:59 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: Custom FPS cap

Post by Blzut3 »

Actually an arbitrary frame rate cap would be useful. At least right now, ZDoom doesn't have a vsync implementation for Linux, and the only help I've been able to find on that said that the only way to get vsync would be to get it from the monitor and implement the frame cap manually (lame explanation was that X was designed for workstations and thus does not need vsync capabilities). That said, I found it's actually pretty easy to get used to the 35fps cap, and considering ZDoom still fundamentally runs at 35hz no matter what the frame rates is it certainly doesn't change game play.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Custom FPS cap

Post by randi »

dascott wrote:.... but for the third time, vsync doesn't change CPU usage.
That's your system, not a general property of vsync. Your system is obviously just busy-looping waiting for the raster to reach the vsync region. My system waits on an interrupt, so it does drop CPU usage significantly.

Here's a graph if you don't believe me:
Sorry, I probably should have made my task manager window taller to make the difference between levels clearer.
Sorry, I probably should have made my task manager window taller to make the difference between levels clearer.
cpuvsfps.png (18.66 KiB) Viewed 5345 times
The game is only set up for one timer: Either it waits for the timer to tick and draws one frame when it does, or it draws as many frames as possible, checking after each frame if the timer has ticked and it should do another thinking iteration.
Blzut3 wrote:At least right now, ZDoom doesn't have a vsync implementation for Linux
It also doesn't have an event-driven timer, so even when you cap the FPS, it's still running at full speed.
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Re: Custom FPS cap

Post by Siggi »

日本語ができますか?
User avatar
Zippy
Posts: 3302
Joined: Wed Mar 23, 2005 5:31 pm
Location: New Jersey

Re: Custom FPS cap

Post by Zippy »

Siggi wrote:日本語ができますか?
One imagines he either knows the language through birth/education/hobby or is esoterically silly. Consider again the avatar and various references that have occurred in off topic.

I'd run things in another language if I was well versed in a second one. It's one way to keep up practice. My ability to read and sign ASL has really been crippled since it fell into disuse.
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Re: Custom FPS cap

Post by Siggi »

Zippy wrote:One imagines he either knows the language through birth/education/hobby or is esoterically silly. Consider again the avatar and various references that have occurred in off topic.

I'd run things in another language if I was well versed in a second one. It's one way to keep up practice. My ability to read and sign ASL has really been crippled since it fell into disuse.
Indeed, I have noticed. But there's nothing wrong with a direct question. :)
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Custom FPS cap

Post by randi »

Siggi wrote:日本語ができますか?
I wish. My self-study just started last month with the kana and this month with the kanji. I'm using Heisig's Remembering the Kanji, so even though I just did kanji #569 today, it will be a while before I can read anything besides random words like 日本語、今日、私、百合、and 花びら. At least for now, it's satisfying enough to be able to look at a page of written Japanese and recognize some of the kanji as characters and not just random squiggles and lines.

As for running Japanese on my computer, I just wanted to try it out for the exposure. Since a lot of it is in katakana, it's actually not that bad. I think it might even be easier than if I ran it in German, even though I had three years of formal German classes. (Because I haven't used my German in 14 years, so I've forgotten a lot of it.) Since my katakana reading speed is abysmal right now, it's also good practice. The Japanese input support that comes with Ubuntu pretty much sucks compared to Windows 7, unfortunately. I'm sure there must be some decent input system for Linux somewhere, but I have no idea where to look.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”