LCD refresh rate (was: Re: NSScreenNumber)
LCD refresh rate (was: Re: NSScreenNumber)
- Subject: LCD refresh rate (was: Re: NSScreenNumber)
- From: Alex Eddy <email@hidden>
- Date: Wed, 29 Oct 2003 18:50:18 -0800
On Oct 29, 2003, at 5:00 PM, email@hidden wrote:
Nice to know yet another unsupported hack or two can now be eliminated.
...
- (double)refreshRate
{
...
return refresh_rate > 0.0 ? refresh_rate : 60.0;
}
Speaking of unsupported hacks! If you really care about accurate
timing, you cannot just assume that the refresh rate is 60Hz when
CoreGraphics lies to you and says it is zero.
You'll have to read the real refresh rate out of the LCD EDID with a
few kernel calls.
See:
http://homepage.mac.com/arekkusu/bugs/ReadEDID.dmg
You'll find that some LCD panels (such as the 17" AlBook) in fact do
not refresh at exactly 60 Hz, which can make a big difference if your
application is sensitive to small timing issues.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.