• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NEWBIE: Refresh Rate, how to find?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NEWBIE: Refresh Rate, how to find?


  • Subject: Re: NEWBIE: Refresh Rate, how to find?
  • From: Joel Lachter <email@hidden>
  • Date: Thu, 22 Aug 2002 14:01:06 -0700

That would explain things! Thanks a lot!


Joel


At 11:57 AM -0700 8/22/02, Timothy J. Wood wrote:
On Wednesday, August 21, 2002, at 11:16 PM, Joel Lachter wrote:

I would like to find the refresh rate of my monitor. Apple has some sample code that seems like it is supposed to do this (the VBL sample) but a) it doesn't seem to work (prints out "hz = 0") and b) the code isn't commented so I am not sure what is wrong.

Anyway, the VBL sample code makes me think it should be possible to get the refresh rate without trying to use CGDisplayBeamPosition and trying to time it. However, I haven't been able to get the sample code to work and I haven't been able to find any documentation. Can someone give me a clue?

If you are on a LCD monitor, you will get zero since there is no good way to describe the the refresh process there (apparently, see the Mac Games Dev list archives for exhaustive discussions about this topic).

-tim
_______________________________________________
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.

References: 
 >Re: NEWBIE: Refresh Rate, how to find? (From: "Timothy J. Wood" <email@hidden>)

  • Prev by Date: NSDrawer, IB "springs", etc.
  • Next by Date: Re: Frameworks refernce online...
  • Previous by thread: Re: NEWBIE: Refresh Rate, how to find?
  • Next by thread: (NSThread) crash after pool release
  • Index(es):
    • Date
    • Thread