Login  Register

Re: Multithreading

Posted by Haroogan on Feb 15, 2011; 10:32am
URL: https://forum.jogamp.org/Multithreading-tp2221001p2500057.html

By the way I see some of you have ~60 fps, I'm sure you should have a lot more. On problem I know is text rendering. For instance, when we've tested on my friends machine we also had ~60 fps until we've changed the method of rendering text. Now I will go in some details to make it clear.

The first method:

textRenderer.beginRendering(...);
textRenderer.setColor(...);
textRenderer.draw(...);
textRenderer.endRendering();

In my demo I use this method and it works fine on my machine, but on the machine of my friend it drops FPS hardly to ~60. Does anybody know why?

The second method:

for(int i = 0; i < string.length(); ++i)
{
        glut.glutBitmapCharacter(GLUT.BITMAP_TIMES_ROMAN_24, string.charAt(i));
}

This is old method. But when I've tried this - it surprised me even more. On my machine this method drops FPS hardly and on my friends machine it works fine...

Currently the first method is in the demo. With all that mess I guess I'll have to write FPS output to some secondary window (text area or something). But in any case, do you have any ideas? By the way, my friend also has NVidia GeForce 8XXX.