Low-level control of refresh rate

nfunit
Unregistered
 
Post: #1
Hi,

I am currently trying to gain low-level control of my lcd screen's refresh rate. I would like to be able to modulate the rate via some form of code (OpenGL, etc...) Essentially I want to place the stop or start time of various animations on either the on or off time of the screen.

Anybody have a clue what language or environment is best suited for this application? Beginning tips on how to accomplish this? Seems (perhaps ignorantly) like this shouldn't be very difficult to impliment...

Thanks much.

-Nik
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #2
If you enable VBL sync on an OpenGL context, buffer swaps will occur between screen refreshes. How to do this varies depending on which API (AGL, CGL, NSOpenGL, etc.) you're using.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
I don't really understand the question, maybe vsync is what you're after.

Otherwise,

* you can't vary the screen's refresh rate except by changing the display mode. Look at CGDirectDisplay to get a list of available modes.

* For some screens you can get the refresh rate and even the current "beam position" for the screen. Again, look at CGDirectDisplay. Not all screens support this information (I believe Apple LCDs always return 0 for the refresh rate and 0 for the beam position).

In other words, if vsync isn't what you want, you're outta luck.
Quote this message in a reply
nfunit
Unregistered
 
Post: #4
Ok, I think I can clarify now. I believe that I want to be able to control the framebuffer of my videocard (ATI Mobility Radeon 9000). I've read that the refresh rate can be controlled by the framebuffer. Do the above suggestions still hold?
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #5
As I said, you cannot control the refresh rate other than by choosing between the available modes (which may or may not include more than one refresh rate, and may or may not tell you what that refresh rate is).
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  OpenGL & Cocoa - Improving frame rate daveh84 4 5,501 Feb 2, 2009 06:53 AM
Last Post: backslash
  OpenGL profiler 3.2 - 0.0 Frame Rate? kelvin 0 2,491 Mar 3, 2006 01:21 AM
Last Post: kelvin
  WindowServer Causing Implicit Refresh? Matrix 4 3,145 Sep 5, 2004 02:06 PM
Last Post: OneSadCookie
  Refresh Open GL in GLUT davecom 8 5,868 Aug 25, 2004 06:13 PM
Last Post: FCCovett