Have you run the profiler on your app?  Because this all runs in the main
thread, there is all kinds of work (including your application code) that
can happen between these.  The only way to determine what is happening
during that time is to profile.

On Fri, Aug 7, 2009 at 3:38 PM, Stephen Lin <[email protected]>wrote:

>
> Hi,
>
> I have a problem with GLSufaceView rotation performance.  After the
> screen is rotated, it sometimes takes a few seconds for the OpenGL
> view to be updated in new layout.
>
> I have Activity, which has a FrameLayout.  The GLSurfaceView is one
> child of the FrameLayout.
>
> I found the problem is that the onSurfaceChanged() method of the
> Render object is called sometimes a few seconds later after the
> onConfigurationChanged() method of the Activity is called.  I use
> RENDERMODE_WHEN_DIRTY mode.
>
> Is there a way to trigger the Render.onSurfaceChanged() to be called
> immediately after the onConfigurationChanged() is called? I tried to
> call requestRender(), it does cause redraw, but sometimes the redraw
> happens before onSurfaceChanged() is called.
>
> Any hints are appreciated.
>
> Thanks,
> Stephen
>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
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