Heyho folks ^^
I was wondering about my performance on an android.
Just to test i made a very simple “Game” where i just make a world (box2d) + renderer and cam.
I have added 1 Body with this code:
BodyDef circleDef = new BodyDef();
circleDef.type = BodyType.DynamicBody;
circleDef.position.set(80, 120);
Body circleBody = world.createBody(circleDef);
CircleShape cs = new CircleShape();
cs.setRadius(1);
FixtureDef fd = new FixtureDef();
fd.shape = cs;
fd.density = 1;
fd.friction = 0.2f;
fd.restitution = 0.8f;
circleBody.createFixture(fd);
return circleBody;
here is my rendering method :
public void update(float delta)
{
renderer.render(world, cam.combined);
world.step(1/60f, 6, 2);
}
now on my comp i have got like 60 fps thats okay but after launching on android it drops to ~8 fps o.O and this is not suitable for me =(
its the first time im working with android and my second time working with libgdx.
My question is:
can i somehow get this running on android or should i just forget it? (btw. i cant connect a real android atm so i use the AVD for Nexus One made out of the given Device Definitions)