Hi,
I'm using core graphics to port a 2D game and I trying to use setClearsContextBeforeDrawing so that I only paint the regions of the screen have been updated.
However this setting seems to have no effect - I set it both in my code & in the projects xib file. I also tried setting the background brush to nil etc...
Is there a way to achieve this? Maybe if I overwrite the default layer of the view?
I'm new to iMac dev - this is my first project so pls be gentle...
Also in case someone wondering we I don't use openGL: the reason is that I cannot find a way to write pixels fast enough on a texture... so the framerate is pretty bad.
Thank you,
Nikos.
I'm using core graphics to port a 2D game and I trying to use setClearsContextBeforeDrawing so that I only paint the regions of the screen have been updated.
However this setting seems to have no effect - I set it both in my code & in the projects xib file. I also tried setting the background brush to nil etc...
Is there a way to achieve this? Maybe if I overwrite the default layer of the view?
I'm new to iMac dev - this is my first project so pls be gentle...
Also in case someone wondering we I don't use openGL: the reason is that I cannot find a way to write pixels fast enough on a texture... so the framerate is pretty bad.
Thank you,
Nikos.