Why OPENGL canvas drops framerate?
in
Programming Questions
•
3 years ago
hello,
I have been testing a lot around, and hope someone can help me out.
if I run the following code:
If I use P2D or P3D framerate is 2000.
I've tested this on 3 different computers with NVidia, GForce GFX (1GB GFX dedicated ram), Linux and Windows.
the culprit framerate kill is the loadPixels();. is there a way to solve this framerate drawback?
please let me know if you have the same problems or if you know how to sole this. thanks in advanced
I have been testing a lot around, and hope someone can help me out.
if I run the following code:
- import processing.opengl.PGraphicsOpenGL;
- void setup()
- {
- size(900, 450, OPENGL);
- smooth();
- background(0);
- frameRate(2000);
- }
- void draw()
- {
- loadPixels();
- println(frameRate);
- }
If I use P2D or P3D framerate is 2000.
I've tested this on 3 different computers with NVidia, GForce GFX (1GB GFX dedicated ram), Linux and Windows.
the culprit framerate kill is the loadPixels();. is there a way to solve this framerate drawback?
please let me know if you have the same problems or if you know how to sole this. thanks in advanced
1