Poor Man SetRefreshRate() question

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

Hi !
I´m wondering why OpenScreen only have success, if i set SetRefreshRate() to 0 !

InitSprite()
SetRefreshRate(1)
If OpenScreen(640,480,32,"bla")=0
MessageRequester("","Screen",0):End:EndIf
Delay(1000)
CloseScreen()

Any help ?

MFG
:)WolfgangS
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
Originally posted by WolfgangS
I´m wondering why OpenScreen only have success, if i set SetRefreshRate() to 0 !
Maybe the refresh rate you have set is not supported by the card but 0 tells the screen to open with a default or best choice refresh rate?


--
It's not minimalist - I'm increasing efficiency by reducing input effort.
(Win98first ed. + SP1, PB3.40)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Holger.

I tried several refresh rates my monitor supports. And it worked perfectly.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

SetRefreshRate(1) is a bit low, isnt it ??

Better use SetFrameRate(1) if you really
want 1 frame / second.

cya,
...Danilo

(registered PureBasic user)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by WolfgangS.

Hi !
i tried ALL RefreshRates from 0 to 150 and all execpt 0 fails ... probably some problems on my local computer here ... :cry:

Thanks anyway ...
:)WolfgangS
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

All from 0 to 150 is useless. Typical refresh rate are 60 (hz), 75, 85, 100.. Just look in the sreen window config in the moniteur panel, you should see the available refresh rates.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.
Originally posted by fred

All from 0 to 150 is useless. Typical refresh rate are 60 (hz), 75, 85, 100.. Just look in the sreen window config in the moniteur panel, you should see the available refresh rates.

Fred - AlphaSND
I think he means that he tries every value from 0 up to 150 and everytimes he gets 0 as a result of fail.

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
Post Reply