un-SetFrameRate

Advanced game related topics
fcb
User
User
Posts: 42
Joined: Fri Aug 31, 2012 10:12 pm

un-SetFrameRate

Post by fcb »

Is there a way to unset (i.e. set to default) the framerate if it is set?
User avatar
Caronte3D
Addict
Addict
Posts: 1361
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: un-SetFrameRate

Post by Caronte3D »

User avatar
chi
Addict
Addict
Posts: 1087
Joined: Sat May 05, 2007 5:31 pm
Location: Austria

Re: un-SetFrameRate

Post by chi »

Code: Select all

SetFrameRate(0)
Et cetera is my worst enemy
fcb
User
User
Posts: 42
Joined: Fri Aug 31, 2012 10:12 pm

Re: un-SetFrameRate

Post by fcb »

No, I'm using SetFrameRate for my experiments.

SetFrameRate(0) - causes program to crash with: "SetFrameRate(): Frame rate can't be less than 1."
User avatar
darius676
Enthusiast
Enthusiast
Posts: 301
Joined: Thu Jan 31, 2019 12:59 am
Contact:

Re: un-SetFrameRate

Post by darius676 »

What about not to use "Vsynch" with Open (Windowed)Screen?
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: un-SetFrameRate

Post by Mijikai »

darius676 wrote: Mon Feb 14, 2022 12:35 pm What about not to use "Vsynch" with Open (Windowed)Screen?
Additional code would be required to ensure that the timing is correct across different Systems.
#NULL
Addict
Addict
Posts: 1499
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: un-SetFrameRate

Post by #NULL »

I would not care about the framerate. Just use a 'delta' timing value as a factor in calculations. example: https://www.purebasic.fr/english/viewto ... 97#p496697
fcb
User
User
Posts: 42
Joined: Fri Aug 31, 2012 10:12 pm

Re: un-SetFrameRate

Post by fcb »

I have left the adjust framerate feature in my SW so if someone runs it on an ancient machine it will still work.

To lower the overhead I reworked the way the graphics is(was) generated (basically stop regenerating the complex graph background each frame).
Post Reply