From: Christiaan H. <cmh...@gm...> - 2007-07-16 18:39:17
|
I just added some cool transition effects for presentation mode to Skim. However the CoreImage transitions are pretty slow (at least on my machine), which is quite annoying. I wonder if someone here knows a bit about graphics and how to speed this up. I found that most of the speed is determined by the standard view drawing. It seems that if I use a OpenGL graphics context (through a NSOpenGLView for example) it draws much faster. However I know little if nothing about OpenGL. And i can't get it to work properly. I cannot make the SKAnimationView an NSOpenGLView, because those cannot have subviews. Also adding a NSOpenGLView as a subview has problems, as I'm not able to get back to the usual drawing context (including the PDFView) after the animation, and the image remains the last image of the animation. Also if I swap in and remove an NSOPenGLView to do the animation, the image of the window from /before/ the animation is shown in a flashafter the animation. Probably this has to do with caching and switching graphics contexts. But I can't get rid of it. Anyone have any experience with graphics, or a better idea how to handle this? Christiaan |