• 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: Throttling drawing to vertical refresh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Throttling drawing to vertical refresh


  • Subject: Re: Throttling drawing to vertical refresh
  • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Fri, 23 Oct 2020 22:17:21 +0200

>
>>> So is there a convenient way to throttle drawing to the monitor's refresh
>>> rate or does this have to be done the hard way by querying the monitor's
>>> refresh rate and then setting up a timer which draws in exactly those
>>> refresh intervals or how should this be done?
>
>>> Note that I'd like to avoid using OpenGL or Metal or whatever is the
>>> standard nowadays but I'm mainly interested in an AppKit solution...

Wouldn't it still be possible to do a call to OpenGL/Metal that waits for the
VSYNC?
(just like what swapbuffers() in OpenGL would normally do.)
Maybe CVDisplayLink can help?

It's just an idea, i don't have much experience with macOS programming.


Best regards, Gabriel


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Prev by Date: Re: Throttling drawing to vertical refresh
  • Next by Date: How to refund a customer on mac app store?
  • Previous by thread: Re: Throttling drawing to vertical refresh
  • Next by thread: How to reposition subviews without Auto Layout
  • Index(es):
    • Date
    • Thread