whats the default frame rate for screen

Just starting out? Need help? Post your questions and find answers here.
Suirad
User
User
Posts: 42
Joined: Sun Sep 20, 2009 7:37 pm
Location: Melbourne, Florida, USA

whats the default frame rate for screen

Post by Suirad »

anyone have an idea?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: whats the default frame rate for screen

Post 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.
Suirad
User
User
Posts: 42
Joined: Sun Sep 20, 2009 7:37 pm
Location: Melbourne, Florida, USA

Re: whats the default frame rate for screen

Post 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?
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: whats the default frame rate for screen

Post 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.
Post Reply