Jump to content

  • Log In with Google      Sign In   
  • Create Account

screen Hz


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 wildcolor   Members   -  Reputation: 126

Like
0Likes
Like

Posted 02 November 2012 - 08:27 AM

Hi guys

I have a CRT monitor that has a 120Hz refresh rate. I want to display my stimulus (say a green rectangle) to have the same rate as the screen. How would I be able to do that?
student

Sponsor:

#2 Aks9   Members   -  Reputation: 861

Like
1Likes
Like

Posted 02 November 2012 - 09:44 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.

#3 wildcolor   Members   -  Reputation: 126

Like
0Likes
Like

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?
student

#4 swiftcoder   Senior Moderators   -  Reputation: 9995

Like
0Likes
Like

Posted 02 November 2012 - 11:03 AM

Vsync!! That's exactly what I want to check. How would I be able to check the status of Vsync?

That's part of whatever windowing toolkit you are using, not OpenGL itself.

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?

Yes, pretty much.

Tristam MacDonald - Software Engineer @Amazon - [swiftcoding]


#5 wildcolor   Members   -  Reputation: 126

Like
0Likes
Like

Posted 02 November 2012 - 04:05 PM


Vsync!! That's exactly what I want to check. How would I be able to check the status of Vsync?

That's part of whatever windowing toolkit you are using, not OpenGL itself.

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?

Yes, pretty much.


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?
student

#6 Aks9   Members   -  Reputation: 861

Like
0Likes
Like

Posted 03 November 2012 - 05:47 AM

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?

I still don't understand what the problem is.
In order to have 120Hz refresh rate, you should keep rendering time below 8ms, a trigger repaint after the previous ends.

#7 swiftcoder   Senior Moderators   -  Reputation: 9995

Like
0Likes
Like

Posted 03 November 2012 - 09:16 AM

SDL has very poor support for setting vsync . Try using SFML or GLFW, both of which do support vsync.

Tristam MacDonald - Software Engineer @Amazon - [swiftcoding]





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS