fullscreen mode slow

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

fullscreen mode slow

Postby Shaka » Tue Jan 05, 2010 8:31 pm

Hi!

If I run the code:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. _activity.requestWindowFeature(Window.FEATURE_NO_TITLE);
  2.  
  3. _activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


...to set fullscreen mode my game's framerate goes from ~45 fps to about 10fps, but if I add :

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
Parsed in 0.000 seconds, using GeSHi 1.0.8.4
...to the manifest instead of doing it using code the framrate stays isn't affected. Any ideas why?
Shaka
Developer
Developer
 
Posts: 44
Joined: Fri Aug 28, 2009 3:01 pm

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests