Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Window Mode VSync(?) issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Window Mode VSync(?) issue



So when running my game in window mode my internal performance counter
is showing extremely spiky results. Frame times basically alternating
between 0.1ms to 30ms with average around 3ms this results in a
somewhat hitchy experience. Although when I look at OpenGL driver
monitor when my app is running I see "Buffer Swaps" pretty flat at
16ms. I get the same results on both ATI and NVIDIA GPUs (both in
MacBook Pros). My thought currently is that vsync is activated (even
though I disabled NSOpenGLCPSwapInterval) and that instead of blocking
when swapping the buffers it is just discards the frame or something.

The other curious thing is that I am using an NSTimer (as seen in the
CocoaGL sample) to trigger rendering every 16ms, so ended up with an
average of 3ms frames is a bit odd to me.

Anyways, is there some magic sauce I am missing here? Is my hypothesis
even close to being correct or could there be something else going on?

thanks,
-james
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.