choose refresh rate in fullscreen mode

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Guest

choose refresh rate in fullscreen mode

Post by Guest »

is it possible to choose the refresh rate when initializing fullscreen mode
ex: 640X480 16bits 60Hz ?
Serg Nechaeff
Posts: 162
Joined: Wed Nov 26, 2003 5:24 pm
Location: Europe

Post by Serg Nechaeff »

Dont mess with this things, firstly you dont want to break someone's monitor, secondly not all videocards do that and thirdly DX doesn't allow this. :wink:
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
Guest

Post by Guest »

well, you're probably right
but if I make a very smooooth scrolling (ex: 1 pixel step), the real seed of the scrolling is different if you run à 60Hz or 85Hz (because Irrlicht waits for the VBL in fullscreen mode)
and that's a problem for me.
Serg Nechaeff
Posts: 162
Joined: Wed Nov 26, 2003 5:24 pm
Location: Europe

Post by Serg Nechaeff »

make some FPS-limit code, and make your game run at 60fps only, so you know it wohnt run faster
check out the article, it can give you some ideas:

http://www.mirzaking.freeservers.com/CDXpaper.htm
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
Guest

Post by Guest »

I know but the scrolling won't be smooth any more
ex:

60Hz : Step of the scroll =1 (integer value) speed=60 pixel/s
(image moves every frame => smooth)

85Hz : Step becomes 60/85 = 0.706 (float value) speed=60 pixel/s also
but the image will NOT move every frame => NOT smooth

do you follow me?
Guest

Post by Guest »

i forgot: Excellent link though (every one should read)
Serg Nechaeff
Posts: 162
Joined: Wed Nov 26, 2003 5:24 pm
Location: Europe

Post by Serg Nechaeff »

hm, just make sure then it doesnt run faster than 60 fps and it will work out :)
http://www.javazing.com
P-III-950, WinXP, GeForce FX5600 128 MB ForceWare 52.16, DX9, Eclipse IDE, JRE 1.6
Post Reply