Slow map in java
问题 I'm making a game in java, is a rpg, however, only with the map the game is slow. The map is made in TiledMap Editor, therefore, an XML that is read and loaded into an ArrayList. My PC is a dual-core 3.0, 4GB RAM, 1GB Video. The do the rendering is done as follows: //method of tileset class public void loadTileset(){ positions = new int[1 + tilesX * tilesY][2]; int yy = 0; int xx = 0; int index = 0; // save the initial x and y point of each tile in an array named positions // positions