Hello I am making a 2D RPG in slick2D and I made a small class for creating new maps
public class Map {
TiledMap tiledmap = null;
public Map(String location, int x, int y) {
try {
tiledmap = new TiledMap(location);
} catch (SlickException e) {
e.printStackTrace();
}
tiledmap.render(x, y);
}
}
But it drops the FPS from 60 (Targeted FPS) to like 30 i do not know what happend and I've been looking for some time and can't find any results and that is why I'm here to ask the community, if you can help great and oh here's how I'm calling it
Map map = new Map("res/gametileset.tmx", 0, 0);
and that's from my play update loop