PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

SoftGL

anybody heard of softgl. it just announced a public release. i think its another opengl implementation for mobile devices. what is interesting is that it highly recommends using it with pockethal. and it confirms that pockethal is faster than gapi.
hi,

i'm the author of softgl. and yes, it does run faster with PocketHAL than using Gapi (anybody ever told something diffent about pockethal?)...

on the MediaQ (eg. iPAQ5450) the difference is not as large as on the xscale chipsets (eg. iPAQ3970). but generally it's a nice speedup for free and i do not have to test my gapi code on lots of devices...

a big thanks goes to Thierry for this great library!

bye,
DANIEL
just some performance numbers about PocketHAL. all tests simply rotate a lit (flatshaded) cube using softgl. the application is not CPU bound on any of those devices (well, maybe a little bit on the 3970). all devices run PPC2003.

iPAQ5450 Gapi: 35fps
iPAQ5450 PocketHAL: 40fps

Toshiba e750 Gapi: 50fps
Toshiba e750 PocketHAL: 56fps

iPAQ3970 Gapi: 90fps
iPAQ3970 PocketHAL: 130fps
iPAQ3970 @478MHz Gapi: 110fps
iPAQ3970 @478MHz PocketHAL: 160fps

ofcourse i'd rather see a speedup on the slow devices (MediaQ-crap), but nevertheless i can really advice to use PocketHAL...

btw: i know this is not a real bug (was a mistake from by side), but if the developer creates the display object twice, then strange things happen when calling Swap() (device crashes in the rotateXXX routine).

bye,
DANIEL
That's great news.

Concerning MediaQ: it is a slow graphic controller. I've tried to write a DMA piece of code but couldn't get it to work faster then directly accessing the frame buffer.

RCP reported that you need to write a device driver to do this properly and I believe he is right. I unfortunately do not have access to Platform Builder and am thus unable to write one.

I keep my eyes open for any idea / way of making this work, but I wouldn't hold my breath over it.
There's a compile problem when not using the gpp library :
in sglMath.h the 'generic section' there should be :
Code:

#else // generic fixed point - should run almost everywhere (needs __int64)
#include "sglFloat_fixed.h"
#include "sglFixedBase_generic.h"
typedef sglFloat_fixed<sglFixedBase_generic> sglFloat;

#endif


the include"sglFloat_fixed.h" is not present in the original source and this prevents from compiling correctly
the include"sglFloat_fixed.h" is not present in the original source and this prevents from compiling correctly


you're right.
thanks for the comment, i'm gonna fix this...

interesting thing is that using my generic fixed point version runs at more or less the same speed as the GPP optimized version (in an application that should be vertex-throughput bound). i'd have expected the GPP version to be faster...

DANIEL
interesting thing is that using my generic fixed point version runs at more or less the same speed as the GPP optimized version (in an application that should be vertex-throughput bound). i'd have expected the GPP version to be faster...

Seriously? I'll have to try this, cause I was browsing around in the code and noticed that for the fixedpoint sin/cos/sqrt the default math lib implementations are used, I thought this was going to kill performance. This is indeed interesting
well, of course sin/cos from math.h is very slow, but it also depends how much it is used per frame...

DANIEL
drgoldie,
I've got the cube demo working on my iPaq3850 (206mHz strongarm), it runs at 62 fps on PocketHal, not using gpp of course.
nice...
could you try it with Gapi, so i'd know if my Gapi code works fine on the 3850?

thx,
DANIEL