Faster alternate to PGraphics
in
Programming Questions
•
2 years ago
Hi, I'm making a little sketchpad for use with my new wacom but I've hit a wall with the coding. Basically I want to be able to draw to the screen without clearing it each time selectively, so that I can draw text/custom cursors/etc over the top without leaving a trail. So I immediately thought PGraphics. However, drawing the PGraphics to the screen with image() every frame is incredibly slow, especially at the resolution I want to be able to use. Is there an alternate to PGraphics for this sort of process? How do programmes such as Sketchpad Pro and even MS Paint do it? The framerate for these programmes is not dependent on the canvas size.
Cheers,
Rob
1