Page 1 of 1

un-SetFrameRate

Posted: Fri Feb 11, 2022 8:30 pm
by fcb
Is there a way to unset (i.e. set to default) the framerate if it is set?

Re: un-SetFrameRate

Posted: Fri Feb 11, 2022 9:29 pm
by Caronte3D

Re: un-SetFrameRate

Posted: Sat Feb 12, 2022 12:20 am
by chi

Code: Select all

SetFrameRate(0)

Re: un-SetFrameRate

Posted: Sat Feb 12, 2022 1:38 pm
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."

Re: un-SetFrameRate

Posted: Mon Feb 14, 2022 12:35 pm
by darius676
What about not to use "Vsynch" with Open (Windowed)Screen?

Re: un-SetFrameRate

Posted: Mon Feb 14, 2022 1:57 pm
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.

Re: un-SetFrameRate

Posted: Mon Feb 14, 2022 2:21 pm
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

Re: un-SetFrameRate

Posted: Thu Feb 17, 2022 10:28 am
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).