#3 Members - Reputation: 126
Posted 02 November 2012 - 09:51 AM
By drawing it on the screen. If vsync is on, you cannot draw it with other rates except f, f/2, f/3, f/4, etc.
Vsync!! That's exactly what I want to check. How would I be able to check the status of Vsync? Also, if Vsync is ON, how would I be able to make my fps as fast as 120Hz? Do I just need to keep the elapsed time of each of my frame to be less that 1second/120?
#4 Senior Moderators - Reputation: 4901
Posted 02 November 2012 - 11:03 AM
That's part of whatever windowing toolkit you are using, not OpenGL itself.Vsync!! That's exactly what I want to check. How would I be able to check the status of Vsync?
Yes, pretty much.Also, if Vsync is ON, how would I be able to make my fps as fast as 120Hz? Do I just need to keep the elapsed time of each of my frame to be less that 1second/120?
Tristam MacDonald - SDE @ Amazon - swiftcoding [Need to sync your files via the cloud? | Need affordable web hosting?]
#5 Members - Reputation: 126
Posted 02 November 2012 - 04:05 PM
That's part of whatever windowing toolkit you are using, not OpenGL itself.
Vsync!! That's exactly what I want to check. How would I be able to check the status of Vsync?Yes, pretty much.Also, if Vsync is ON, how would I be able to make my fps as fast as 120Hz? Do I just need to keep the elapsed time of each of my frame to be less that 1second/120?
Thanks a lot for the reply. It's helpful, but not 100% solve my problem. Could you give me more hints about the details of the windowing toolkit part. For example, I tried SDL, but it doesn't seem to support what I want to do. Do you know anything that does and could you give me some detailed examples?
#6 Members - Reputation: 331
Posted 03 November 2012 - 05:47 AM
I still don't understand what the problem is.Could you give me more hints about the details of the windowing toolkit part. For example, I tried SDL, but it doesn't seem to support what I want to do. Do you know anything that does and could you give me some detailed examples?
In order to have 120Hz refresh rate, you should keep rendering time below 8ms, a trigger repaint after the previous ends.
#7 Senior Moderators - Reputation: 4901
Posted 03 November 2012 - 09:16 AM
Tristam MacDonald - SDE @ Amazon - swiftcoding [Need to sync your files via the cloud? | Need affordable web hosting?]






