![]() |
Re: Xlib+OpenGLES performace
Yes, in Bounce we use _HILDON_NON_COMPOSITED_WINDOW. This should bring clear&swap performance up to at least 80 fps.
There is no need to resort to any trickery like sleeping or flushing to gain performance, they will only make things slower. The fewer you bother EGL/GLES the better. Notice also that the rendering is asynchronous if you don't do anything that forces synchronization. This means that the application doesn't have to wait rendering to complete before starting the next one which allows CPU and GPU to work concurrently. |
Re: Xlib+OpenGLES performace
Thanks, Miika, it's good to hear that _HILDON_NON_COMPOSITED_WINDOW is all you need and that no further black magic is required.
I have now tried it and I'm very happy with the results, so all is now set for some game programming over the Xmas holiday. |
Re: Xlib+OpenGLES performace
Hello,
Would you be able to post the new source code for your simple example? I've tried modifying your simplegl code with _HILDON_NON_COMPOSITED_WINDOW and I'm getting about 30 FPS. Shouldn't it be faster? Thanks! |
Re: Xlib+OpenGLES performace
So my first on hand experience and gut feeling was correct whats' going on....
http://talk.maemo.org/showpost.php?p...&postcount=412 :D |
Re: Xlib+OpenGLES performace
Quote:
And please put this into extras-devel so people easily find it, can easily test it and most important are only one tiny "apt-get source" step away from the complete source code and all dependencies they need to compile it themselves. |
Re: Xlib+OpenGLES performace
Quote:
Looking at the version of my code you posted at http://wiki.maemo.org/SimpleGL_Example, I see that you still have the 'usleep(1000*30)' in there, which I guess is the cause for your 30 fps. You also set _NET_WM_STATE_FULLSCREEN twice. Good luck with your game. |
Re: Xlib+OpenGLES performace
Quote:
Cheers. |
Re: Xlib+OpenGLES performace
Hi,
I'm currently learning openGL ES 2.0. I was studying that nice example. Thnks for that. I was reorganizing and commenting it a bit in order to be more understandable. I would like to replace the wiki-example with my version, which you can find here: http://www.agnld.uni-potsdam.de/~ber...gl-example.cpp Is that ok? |
Re: Xlib+OpenGLES performace
Quote:
|
Re: Xlib+OpenGLES performace
Ok, I updated the example program and added a screen shot.
I commented the code, cleaned it up (removing useless includes...) and corrected some small mistakes. I also changed a bit what it's doing, to be a little bit more attractive (watch the screen shot). |
| All times are GMT. The time now is 21:35. |
vBulletin® Version 3.8.8