Active Topics

 



Notices


Reply
Thread Tools
Posts: 68 | Thanked: 621 times | Joined on Oct 2009
#11
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.
 

The Following 12 Users Say Thank You to Miika For This Useful Post:
Posts: 6 | Thanked: 12 times | Joined on Dec 2009
#12
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.
 

The Following User Says Thank You to exoticorn For This Useful Post:
Posts: 8 | Thanked: 16 times | Joined on Dec 2009
#13
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!
 
Mara's Avatar
Posts: 1,309 | Thanked: 813 times | Joined on Mar 2006 @ Irving, TX
#14
So my first on hand experience and gut feeling was correct whats' going on....

http://talk.maemo.org/showpost.php?p...&postcount=412

 
Posts: 345 | Thanked: 467 times | Joined on Nov 2007 @ Germany
#15
Originally Posted by Mr_Smiley View Post
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!
Agreed! We really should create a simple gles demo that's a) as fast as possible and b) as simple as possible. This might then become the starting point for real apps.

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.
 
Posts: 6 | Thanked: 12 times | Joined on Dec 2009
#16
Originally Posted by Mr_Smiley View Post
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!
You can find the updated code at http://exoticorn.de/simpleglv2.tgz. With this, I get about 42fps. (The framerate is very dependent on the size of the triangle on the screen, as the pixel shader with its sinus is killing the fillrate.)
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.
 

The Following 4 Users Say Thank You to exoticorn For This Useful Post:
Posts: 8 | Thanked: 16 times | Joined on Dec 2009
#17
Originally Posted by exoticorn View Post
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.
I totally missed that, thanks! I have added a link to the code on the wiki page (http://wiki.maemo.org/OpenGL_ES_Libraries). Hope this is OK.

Cheers.

Last edited by Mr_Smiley; 2009-12-22 at 05:14.
 

The Following User Says Thank You to Mr_Smiley For This Useful Post:
Posts: 30 | Thanked: 16 times | Joined on Jan 2010 @ Berlin
#18
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?
 
Posts: 8 | Thanked: 16 times | Joined on Dec 2009
#19
Originally Posted by endboss View Post
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?
That's fine with me. Good work commenting it
 
Posts: 30 | Thanked: 16 times | Joined on Jan 2010 @ Berlin
#20
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).
 

The Following User Says Thank You to endboss For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:37.