AWTGLCanvas Speed

Started by cyberkilla, January 31, 2007, 03:08:39 PM

Previous topic - Next topic

cyberkilla

Hello, I am experimenting with billboarding, to see if there are any performance
benefits from using pure 3d, instead of rendering in 2d.
I am using the jpct implementation of awtglcanvas.

I have heard that the canvas is a lot slower than a native window.
Is this so? I can imagine some extra processing to render into awt,
but has anybody got any idea how much?

It is more than possible for me to use a native gl window, if needed, but im discouraged from this approach, because I would need to blit my menus into the
framebuffer.

I also use scrollpanes, and skinned buttons via SkinLF.jar.

This is merely a test. A test to evaluate the performance boost, if any, when using  pure 3d, and not using trickery to put 3d onto 2d.

Thanks in advance, for any help:)
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG

EgonOlsen

The canvas itself is a little bit slower than a native window (depends on the graphics cards too...some suffer more than others). Plus jPCT does a lot of work in the background to decouple the rendering thread (i.e. the awt event thread) from the actual application thread. The performance penalty is hard to predict and depends on the scene and the hardware. It may even be faster , because it gives you "multithreading for free" (one thread does the painting, one the geometry processing).

cyberkilla

Thanks Egon, its certainly worth considering:).
http://futurerp.net - Text Based MMORPG
http://beta.rpwar.com - 3D Isometric MMORPG