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


If I run the code:

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

...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
...to the manifest instead of doing it using code the framrate stays isn't affected. Any ideas why?
Posts: 44
Joined: Fri Aug 28, 2009 3:01 pm


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

Who is online

Users browsing this forum: No registered users and 5 guests