Custom FPS cap

Moderator: GZDoom Developers

Blzut3
 
 
Posts: 3204
Joined: Wed Nov 24, 2004 12:59 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Contact:

Re: Custom FPS cap

Post by Blzut3 »

randy wrote:
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.
Wasn't there at 1ms sleep call within the loop at one point?
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:
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. :)
Agreed.

And that's a nice example of what I like about non-idiotic discussions and how differences come into play. Given the same observation, likely the same presumed reasons, and agreement that asking isn't itself problematic, we still come to opposing straights of, "So, might as well ask!" and "So, no reason to ask!"



In the interest of giving the whole, "it's the i7's fault!", I thought I take a look at some numbers with my i7. So here's ZDoom running widescreen with vsync/cap off, vsync on, and cap on. With both off we do see ZDoom going to town, rendering at a worthless 550 FPS. VSync immediately brings things under control to the monitor's lower refresh rate of 60 FPS, also dropping the CPU usage. Lastly, the cap drops it a little bit lower at 35 FPS.
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 »

randy 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.
I've been studying Japanese for since 2005, however the past 4 years have not seen as much progress because I'm also studying Computer Science at University. My ability to read Kanji is quite poor, and vocabulary is a bit lacking, but my understanding of basic language and sentence construction is pretty good. I enjoy it a lot though.
randy wrote: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.
For Ubuntu I'm using Uim and Anthy. The default, Scimm, I wasn't very fond of either. Specifically getting it to work with anything other than GTK and Qt applications. Although I have not set up my system this way at the moment, I know Uim can be used to handle pretty much every form of input, so you can even use it with xterm. I should point out it was quite awhile ago I tried Scimm, so maybe it's changed since then. Either way I'm happy with Uim and Anthy.

Also, sorry about the off-topicness in the Development subforms.
dascott
Posts: 20
Joined: Sun Apr 18, 2010 11:53 pm

Re: Custom FPS cap

Post by dascott »

Looks like it was a problem with GL mode or porting, then. Hell right now I'm looking it doing 1000 fps and not even registering on perfmon, so I give in.
User avatar
Spleen
Posts: 497
Joined: Fri Nov 28, 2008 7:07 pm

Re: Custom FPS cap

Post by Spleen »

dascott wrote:generating a lot of useless heat and even crashing some PCs. (laptops especially)
That's a problem with your computer, man. Try cleaning your vents or underclocking your CPU. I use SpeedswitchXP on my laptop to keep it cool. If that fails to keep it cool, you might even have to disable one of your cores through your BIOS.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Custom FPS cap

Post by randi »

Added in r3872.

(ちなみに、このスレーが懐かしい…)
User avatar
BloodyAcid
Posts: 372
Joined: Thu Jul 26, 2012 10:28 pm
Location: Canadia

Re: Custom FPS cap

Post by BloodyAcid »

そうですね。。。
User avatar
PlayerLin
Posts: 585
Joined: Sun Nov 11, 2007 4:20 am
Graphics Processor: nVidia with Vulkan support
Location: XinZhuang, XinBei/New Taipei City(Former Taipei County), Taiwan.
Contact:

Re: Custom FPS cap

Post by PlayerLin »

Holy shit, I were wandering about why (G)ZDooM cannot do this kind of thing when I just want to custom my max fps every time...

Now I'm happy.
User avatar
Marisa the Magician
Banned User
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Custom FPS cap

Post by Marisa the Magician »

I'm glad there's finally a custom fps cap. I've been noticing lately that ZDoom was making my cpu hot as a sun, while also causing amusing visual glitches by running at thousands of FPS (screen shaking makes the whole screen get chopped into multiple thin horizontal slices, for example). I simply stopped using it and went with GZDoom since the nvidia sync to vblank option did its job well with opengl.
randi wrote:I'm sure there must be some decent input system for Linux somewhere, but I have no idea where to look.
I have uim with the "anthy" input method for that, not sure if you'd like it. It requires some configuration and learning keyboard shortcuts.
Daniel2
Posts: 19
Joined: Mon Jun 06, 2016 1:13 pm

Re: Custom FPS cap

Post by Daniel2 »

Framerate cap does not work.

i have this :
cl_fpscap=false
vid_maxfps=250

Despite carefuly reading the Display page of ZDoom wiki i fail to see why it does not work : http://zdoom.org/wiki/CVARs:Display

cl_capfps (boolean)

Default: false
When true, the game is limited to 35 FPS, as it was originally in Doom. When false, the game frame rate will be as high as your machine is capable of (within the limits of vid_maxfps, if set). You can use this in conjunction with vid_vsync to control whether or not the maximum frame rate is restricted to your monitor's refresh rate.

vid_maxfps (integer) (Not Mac OS X)

Default: 200
If non-zero, this variable limits the frame rate to some arbitrary rate between 35 and 1000 FPS. Note that vid_maxfps 35 is not the same as cl_capfps 1: cl_capfps caps the frame rate by tying the video update directly to the game timer. With vid_maxfps 35, the video update and game timer are running on separate timers, and results will not be as good as with cl_capfps 1, which uses only one timer. You can use this in conjunction with vid_vsync to control whether or not the maximum frame rate is restricted to your monitor's refresh rate.

PS : I use latest GZDoom stable build : Version 2.1.1 (64-bit)

Checked with vid_fps 1, the cap just dont work.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Custom FPS cap

Post by Graf Zahl »

vid_maxfps is not implemented in GZDoom.
User avatar
StrikerMan780
Posts: 486
Joined: Tue Nov 29, 2005 2:15 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Custom FPS cap

Post by StrikerMan780 »

Any ETA on when it might be? I'd like to be able to limit my FPS without introducing the horrendous input and mouse lag that comes with enabling V-Sync. That, and I want to keep my GPU from running too hot.
Last edited by StrikerMan780 on Wed Jun 15, 2016 6:25 pm, edited 1 time in total.
Daniel2
Posts: 19
Joined: Mon Jun 06, 2016 1:13 pm

Re: Custom FPS cap

Post by Daniel2 »

Just a quick note, limiting fps is very important, some high end graphic cards have coil whine noise if they are outputing too many frames per seconds (above 1000+) you can google coil whine if you are not aware. Thanks for your answer and your amasing work Graf Zahl.
User avatar
Jaxxoon R
Posts: 772
Joined: Sun May 04, 2014 7:22 pm

Re: Custom FPS cap

Post by Jaxxoon R »

Yeah, my rig does that whenever I run GZDoom. At first I thought something was wrong but it seems 960's are pretty prone to it.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”