cloke
2002.06.19, 04:08 PM
I recently moved a sprite game I was working on to 100% quartz. By doing this I was able to simplify my code by a ton and get some pretty cool effects. The problem is that Quartz is so slow. My game went from getting 30FPS to about 17FPS. I know I always read that Quartz is slow, but I was hoping to find a few optimization suggestions.
I was also wondering if there is any downside to mixing QD with Quartz? I have a scrolling background that is done by moving a a view rect around a GWorld (similar to the tutorial found on this site). Then all my sprites are done using the Quartz CG routines. I made the background scroll with CG calls also, but this dropped my frame rate to about 4FPS.
Any suggestions?
I was also wondering if there is any downside to mixing QD with Quartz? I have a scrolling background that is done by moving a a view rect around a GWorld (similar to the tutorial found on this site). Then all my sprites are done using the Quartz CG routines. I made the background scroll with CG calls also, but this dropped my frame rate to about 4FPS.
Any suggestions?