OpenGL stops animating after title bar is dragged

Post: #1
I created a simple test app that just rotates a white circle in front of a blue background. It works fine until I drag the title bar of the window around. Within a second or so of dragging, the animation stops. I know the draw function keeps getting called, because I'm seeing FPS info in the logs. What could cause animation to stop, though?
Quote this message in a reply
Posts: 208
Joined: 2005.04
Post: #2
If you're using an NSTimer, make sure you add it to NSEventTrackingRunLoopMode:

[[NSRunLoop currentRunLoop] addTimer:refreshTimer forMode:NSEventTrackingRunLoopMode];

edit: actually, if you're seeing that your draw routine is being called, NSEventTrackingRunLoopMode probably isn't the issue... though it's still something to keep in mind.
Quote this message in a reply
Posts: 834
Joined: 2002.09
Post: #3
Are you swapping the buffers from inside the drawing function? If not, it could be that the update function you're using to actually display your drawing isn't getting called.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Animating 3D Models Josh 18 14,756 Jul 15, 2003 04:26 AM
Last Post: Holmes