Hi,
I’m getting low framerates (10p fps) on my android game. I’m suspecting I have no hardware acceleration. On the pc version of the game I get up to 400 fps.
I added the following code to the main activity to try to confirm my suspicion:
@Override
public void onCreate(Bundle savedInstanceState) {
System.out.println("Hardware accelerated: " + (getWindow().getAttributes().flags & WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED));
super.onCreate(savedInstanceState);
}
The output is “Hardware accelerated: 0”
I also configured my device to flash the screen when something is drawn using the GPU. When I run my game, nothing flashes.
I built jMonkeyEngine 3.1-5468 from source so my armv7l device would pass the is64 check. In older versions the armv7l throws a “not supported architecture” error, that’s why i built it from sources (so I can continue developing my app until the 3.1 version is released).
I enabled android:hardwareAccelerated=“true” on android manifest file and my application uses multidex.
I have the following jars:
libs/jme3-android-3.1.0-SNAPSHOT.jar
libs/jme3-android-native-3.1.0-SNAPSHOT.jar
libs/jme3-core-3.1.0-SNAPSHOT.jar
libs/jme3-effects-3.1.0-SNAPSHOT.jar
libs/jme3-lwjgl-3.1.0-SNAPSHOT.jar
libs/jme3-niftygui-3.1.0-SNAPSHOT.jar
libs/jme3-plugins-3.1.0-SNAPSHOT.jar
How do I confirm if I’m having hardware acceleration and how to enable it?