Horde3D

Next-Generation Graphics Engine
It is currently 27.04.2024, 11:16

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How to set constant FPS?
PostPosted: 12.03.2010, 15:05 
Offline

Joined: 17.11.2009, 17:00
Posts: 205
Location: Russia, Moscow
Is it possible to set desired fps from program and not from drivers via v-sync? I want to set constant fps because otherwise there is a lot of screen tearing and camera animation is not smooth.


Top
 Profile  
Reply with quote  
PostPosted: 12.03.2010, 15:37 
Offline

Joined: 15.06.2008, 11:21
Posts: 166
Location: Germany
My code for that:
http://github.com/mgottschlag/PeakEngin ... imiter.hpp
http://github.com/mgottschlag/PeakEngin ... imiter.cpp

Simply measure the elapsed time and wait for the next frame.

Or you could set vsync.


Top
 Profile  
Reply with quote  
PostPosted: 15.03.2010, 09:52 
Offline

Joined: 17.11.2009, 17:00
Posts: 205
Location: Russia, Moscow
phoenix64 wrote:
My code for that:
http://github.com/mgottschlag/PeakEngin ... imiter.hpp
http://github.com/mgottschlag/PeakEngin ... imiter.cpp

Simply measure the elapsed time and wait for the next frame.

Or you could set vsync.


Thanks alot, phoenix64. I'll try to implement it :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group