Posted by
Sven Gothel on
Nov 14, 2012; 1:18am
URL: https://forum.jogamp.org/GLCanvas-GLJPanel-problems-tp4026923p4026934.html
On 11/13/2012 04:41 PM, mikaelhc [via jogamp] wrote:
>
> When using GLCanvas, I get close to 60FPS no matter what the windows size is
> (even I use a FPSAnimator with higher target FPS, the FPS seems capped to 60FPS).
That is simply v-sync enforced.
Depending on your GL profile, OS and desktop - and your driver settings,
v-sync has some defaults.
Hence you can try setting 'gl.setSwapInterval(0)'
in your init or reshape method.
>
> When using GLJPanel, I get around ~100FPS for a small window sizes, but for
> large panel sizes, the frame rate decreases down to ~30 FPS. Even with no
> drawing operations.
Yeah, that's ok. I.e. no v-sync and performance is CPU or memory transfer
bound depending on the composition technique used for that swing panel,
i.e. reusing swing's FBO, own FBO and manual copy pixels .. etc.
In short: For high performance, GLJPanel shall be avoided.
~Sven