I think I found a solution to this issue - my game uses OpenGL and
crashes horribly when I try to detect hardware acceleration on the
Samsung Moment.  Luckily my coworker just got a Moment so I had a
chance to debug the situation.  FYI, neither DroidBench nor NeoCore
show up in the Market for the Moment.  Speed Forge 3D runs fine on the
Moment.

The EGL configs that allow hardware acceleration have the EGL_CAVEAT
value set to EGL_UNKNOWN on the Moment.  If you are writing your own
EGL config chooser, you'll need to take this into account.  The steps
for my config chooser are as follows:

1. Look for all configs closest to RGB==565 and with EGL_CAVEAT ==
EGL_NONE
2. If nothing is found, look for all configs closest to RGB==565 and
with EGL_CAVEAT == EGL_SLOW_CONFIG

I assume that useful configs appear in either of the two searches.
This is an incorrect assumption with the Samsung Moment since the
hardware accelerated configs have EGL_CAVEAT == EGL_UNKNOWN.  Reading
the EGL spec, this seems to be a weird situation.  The steps for my
config chooser are modified as follows:

1. Look for all configs closest to RGB==565 and with EGL_CAVEAT ==
EGL_NONE
2. If nothing is found, look for all configs closest to RGB==565 and
with EGL_CAVEAT == EGL_DONT_CARE

Basically I do a narrow search for known hardware accelerated configs,
then a broader search that hopefully returns something useful.  The
broader search is similar to what GLSurfaceView does by default.  FYI,
GLSurfaceView with the default EGL config chooser seems to run fine on
the Samsung Moment.  I mentioned that my game would crash horribly
using the first sequence of config choosing - apparently the second
search for EGL_SLOW_CONFIG returns PixelFlinger (software renderer)
configs that are created just fine.  When I try to finish() the
current activity, my app segfaults.  I guess the Moment has trouble
using software renderers.

Hope this helps.

  Ernest Woo
  Woo Games
  http://www.woogames.com

On Dec 7, 5:38 pm, dan raaka <[email protected]> wrote:
> can you check DroidBench and NeoCore as well?
> -Dan
>
> On Mon, Dec 7, 2009 at 9:34 AM, dan raaka <[email protected]> wrote:
> > Do you have a apk for testing .. which shows difference in performance ?
> > -Dan
>
> > On Thu, Dec 3, 2009 at 9:16 PM, SoftwareForMe.com <[email protected]
> > > wrote:
>
> >> Greetings,
>
> >> We acquired a Samsung Moment today, and find that it's 3D performance is
> >> very poor compared to the HTC and Motorola devices. I've tried all the
> >> tricks I know (color depths, rendering options), but can't get much out of
> >> it. Rotating a single textured quad is jerky.
>
> >> I understand that the Galaxy was missing a software component, and that
> >> once a surrogate was added, the 3D performance was acceptable.
>
> >> Does anybody have the real low-down on this issue? Specifically:
>
> >> * Do others also find the Moment to be a poor 3D performer?
> >> * Is there any word about Samsung fixing this?
> >> * Am I missing something obvious?
>
> >> Thanks much,
> >> SoftwareForMe.com
> >> Makers of PhoneMyPC
> >> & Imagine Multi-touch
> >> --
> >> You received this message because you are subscribed to the Google
> >> Groups "Android Developers" group.
> >> To post to this group, send email to [email protected]
> >> To unsubscribe from this group, send email to
> >> [email protected]<android-developers%[email protected]>
> >> For more options, visit this group at
> >>http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to