We have to update a lot of small onscreen objects and performance is way better, when we travers them outside the Cocoa view tree. If we would use invalidating, we would have to go thru our complete view tree and check for overlaps with the update rect.
Wolfgang This did not influence it in a positive way. [NSWindow display] makes it > worth and takes down the performance of the whole application. > > >> > Is there anyway, I can inform the window that graphics need to be >> flushed ? >> >> Have you tried [NSWindow displayIfNeeded] (or just [... display])? >> > > Well, the question has to be asked: why are you drawing outside of > drawRect: using lockFocus/unlockFocus anyway? Why not just schedule the > animation using -setNeedsDisplay: and handle the actual rendering > conventionally? Getting 60fps is no problem. > > --Graham > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com