Greetings,
Any idea why rendering text to an PGraphicsOpenGL slows drastically things down? This simple snippet runs at 8fps!
Thanks
Any idea why rendering text to an PGraphicsOpenGL slows drastically things down? This simple snippet runs at 8fps!
Thanks
- private PGraphicsOpenGL canvas;
- public void setup() {
- size(1024, 768, P3D);
- canvas = (PGraphicsOpenGL) createGraphics(width, height, P3D);
- }
- public void draw() {
- canvas.beginDraw();
- canvas.background(0);
- canvas.fill(255);
- canvas.text("hello world", width / 2, height / 2, 0);
- canvas.endDraw();(
- image(canvas, 0, 0);
- }
1