• 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
Synchronizing to screen refresh rate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Synchronizing to screen refresh rate


  • Subject: Synchronizing to screen refresh rate
  • From: Jonny Taylor <email@hidden>
  • Date: Fri, 17 Dec 2010 12:40:22 +0000

Hi all,

I have been reading up on an area unfamiliar to me - fullscreen drawing and display refresh rates. This is for a scientific application - we have a third party external pixellated device which presents itself as a second monitor over DVI, but with an unusually high refresh rate (about 240Hz if I remember rightly). It is quite important to us that we should make sure there is a new "frame"'s worth of data ready to be sent to the device on each refresh.

I have been reading the following article:
http://developer.apple.com/library/mac/#documentation/Performance/Conceptual/Drawing/Articles/FlushingContent.html
which talks about fullscreen drawing, use of OpenGL contexts, how to obtain the refresh rate, etc. However in order for our code to work effectively we could really do with knowing *when* a refresh will next occur, in order to time our activities to ensure the most appropriate data is ready to be sent on the next refresh. Without that there is a strong chance we will send stale data and/or miss some refreshes. Our requirements here are probably a little stronger than most movie playback applications, for example.

Is there any way that we can achieve this? It may be that this is too low-level to be within the realms of cocoa, in which case do please suggest where I should be looking/asking instead.

Hopefully my question and my motivation for wanting to do this are reasonably clear - any suggestions would be very welcome!
Cheers
Jonny_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Synchronizing to screen refresh rate
      • From: Dave Keck <email@hidden>
  • Prev by Date: Re: File name issue with German umlauts
  • Next by Date: Re: Synchronizing to screen refresh rate
  • Previous by thread: Re: Use of mutableArrayValueForKey
  • Next by thread: Re: Synchronizing to screen refresh rate
  • Index(es):
    • Date
    • Thread