Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vsync user control?



On May 30, 2005, at 12:46 PM, Asiga Nael wrote:

I know applications can enable/disable vsync, but I
didn't find any setting for the user to enable or
disable vsync depending on his/her visual comfort
needs... and the default seems to be disabled!!!!!

To get vsync you set the AGL_SWAP_INTERVAL (for AGL) or kCGLCPSwapInterval (CGL) to a value other than 0. Typically you set it to 1, meaning to sync to every retrace. In AGL you use aglSetInteger, in CGL use CGLSetParameter. I don't know the NSGL variants if your using Cocoa, but they shouldn't be too hard to find.


There isn't a user control anywhere, because the system does generally sync to the vertical trace. Only OpenGL contexts default to no sync, and the developer is expected to provide a user control for this (or not and always enable/disable vsync).
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.


David Duncan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden
References: 
 >vsync user control? (From: Asiga Nael <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.