1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

OpenGL-ES version

Post a reply


Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: OpenGL-ES version

Re: OpenGL-ES version

Post by dbluelle » Sat Jul 13, 2013 10:50 am

cousteau wrote:I think rksimon was already doing some work related to OpenGLES: https://sourceforge.net/apps/phpbb/extr ... rt=10#p293
Better to check what has already been done, so that you don't waste time re-implementing things and fixing problems that rksimon has already dealt with. :)

I hadn't seen that. :oops:
(Well I only recently detected this forum...)
I will take a look at his work, thanks.

pkeus wrote:I am not sure about your ETR_DOUBLE fix - I don't really see the purpose of that change. Sure, we Need to fix our floating point usage, since we are constantly mixing float and double (which results in thousands of warnings if highest warning level of MSVC is used), but your change doesn't affect constants, which need still be switched between 0.0 and 0.f and you used a #define instead of a typedef.

On the pandora floats are generally handled much faster than doubles, so I thought I just move everything to float.
I use the -fsingle-precision-constant compiler option to ensure all constants are floats.
I'm using Makefile.static because autoconf/automake always quits with errors (Maybe something's wrong with my crosscompiling toolchain...).

One commit that also might interest you is https://github.com/dbluelle/pandora-ext ... c12c238a6f
(not the "#ifndef PANDORA" stuff, but the unneccessary call of "Draw(ctrl)" in the CCurtain::Update method)

Re: OpenGL-ES version

Post by pkeus » Fri Jul 12, 2013 5:56 pm

Thank you! I backported two small fixes so far.

I am not sure about your ETR_DOUBLE fix - I don't really see the purpose of that change. Sure, we Need to fix our floating point usage, since we are constantly mixing float and double (which results in thousands of warnings if highest warning level of MSVC is used), but your change doesn't affect constants, which need still be switched between 0.0 and 0.f and you used a #define instead of a typedef.

OpenGL-ES Support might be something for official source as well - would increase the number of supported platforms and might increase our user-base. It might also be worth considering when we rewrite our OpenGL rendering (which is quite outdated). However, we should discuss that after version 0.6 :-)

Re: OpenGL-ES version

Post by cousteau » Fri Jul 12, 2013 4:33 pm

I think rksimon was already doing some work related to OpenGLES: viewtopic.php?f=6&t=52&hilit=OpenGLES&start=10#p293
rksimon wrote:Just a quick update, my fork of etr at https://github.com/RKSimon/extremetuxracer is now working quite well on arm/linux for OpenGLES as well as OpenGL. On my pandaboard running ubuntu 12.04 I'm currently getting about 10fps at 1080p (compared to 0.2fps on OpenGL), which I reckon I can still improve on after some more profiling. I will get it tested on my raspberry pi soon.


Better to check what has already been done, so that you don't waste time re-implementing things and fixing problems that rksimon has already dealt with. :)

OpenGL-ES version

Post by dbluelle » Wed Jul 10, 2013 10:33 am

Hi,

Just FYI:

I'm currently working on a version of ETR for the Pandora handheld http://www.openpandora.org
The Sourcecode is available on github: https://github.com/dbluelle/pandora-extremetuxracer
The major difference is the conversion to openGL-ES.
Most of my changes are #ifdef-ed, so it should be quite easy to see the differences.
The only bigger change was to replace all doubles with floats (I defined ETR_DOUBLE for this purpose)

Feel free to have a look at my patches and maybe incorporate some of them into the "official" source here on sourceforge.

Greetings

dbluelle

Top

cron