Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the renderer away from SDL #13

Closed
Aloshi opened this issue Aug 18, 2012 · 6 comments
Closed

Move the renderer away from SDL #13

Aloshi opened this issue Aug 18, 2012 · 6 comments

Comments

@Aloshi
Copy link
Owner

Aloshi commented Aug 18, 2012

Right now, ES renders at about 5fps - making input a little laggy and animation impossible. Moving to another rendering framework would be good - perhaps Qt, as it has a Pi-specific release? Whatever the renderer, it needs to be able to display text and load/display images.

@Aloshi
Copy link
Owner Author

Aloshi commented Aug 24, 2012

I think Qt is out of the picture - it requires several hundreds of megabytes of libraries to install and is a bit overkill. I might just have to write my own OpenGL ES rendering functions. The downside is this will limit ES to only run on the Raspberry Pi (unless I write another renderer for normal OpenGL).

@Aloshi
Copy link
Owner Author

Aloshi commented Aug 28, 2012

An update! I've been very hard at work on the new renderer for the past few days (I think I've spent nearly 15 hours on it!). I have a version of Renderer::drawRect working perfectly, and Renderer::drawText working almost perfectly (colors don't work yet). This is all in a separate project. I have yet to merge it with EmulationStation, and I still need to do image loading.

A bit of a benchmark - drawing the string "RANDOM TEXT" 200 times brings me to about 20-30fps. That's a lot of text (and my framerate reporting code may have been bad).

A very poor-quality picture, of drawing a red rectangle and some text: https://dl.dropbox.com/u/2816162/text_at_last.jpg

@petrockblog
Copy link

That sounds great! If you need beta testers just send me a message.

@Aloshi
Copy link
Owner Author

Aloshi commented Aug 30, 2012

And now we start to see the performance difference (it flickers between 58fps and 60fps): https://dl.dropbox.com/u/2816162/getting_closer.jpg

Still have to fix font sizing and reimplement the special image stuff (e.g. tiling, resizing).

(P.S. If my frequent updates are annoying anyone with emails, you can mute posts for this particular issue at the bottom of the page)

@Xevin-zz
Copy link

Not annoying me at all. I look forward to every time I get a new email with your name on it.

60 fps is fantastic! That's more then I imagined! Can wait for the merge.

@Aloshi
Copy link
Owner Author

Aloshi commented Sep 5, 2012

And done (but probably a little buggy with themes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants