Page 1 of 1

whats the default frame rate for screen

Posted: Sun Jan 30, 2011 10:36 am
by Suirad
anyone have an idea?

Re: whats the default frame rate for screen

Posted: Sun Jan 30, 2011 11:09 am
by Trond
If FlipMode = #PB_Screen_NoSynchronization, then the frame rate is unlimited (as fast as your program can go). If FlipMode = anything else, the frame rate is the refresh rate of the user's monitor.

Re: whats the default frame rate for screen

Posted: Mon Jan 31, 2011 3:10 am
by Suirad
Ah ok thanks for the info. So what if the framerate was changed with SetFrameRate() how would i change it back to what it was before?

Re: whats the default frame rate for screen

Posted: Tue Feb 01, 2011 5:05 pm
by Zach
Store the previous value in a variable, and have a procedure restore that value when called.

If this is for a game, you can just decide on the defaults you want, and have them initialize to those values, and have a "restore default settings" function, that either works globally on everything, specific to the settings tab, or specific to the menu item used to change the option in general. It's all about how detailed you want it to be.