Issues With GameCanvas Performance
Hello, recently I've been toying with java mobile applications, but I've run accross a problem I cannot overcome.
My LayerManager has two objects: the sprite and the tiled layer. Whenever I add the latter to my layer manager, I get 1-2 FPS when rendering the screen, but if I remove it and have only the sprite displayed, I get above 30 FPS (though it is fixed at 20 on my end).
My layer has the following properties:
TiledLayer mbg = new TiledLayer(15,20,tiles,16,16);
Any help appreciated.
PS: Getting 1-2 FPS on a crappy computer, but the same application running on a fast machine won't get past 11 FPS, although the main game loop is supposed to run at 20 FPS.