Original Post
I am developing an rpg game in Java with a 2 layer tile based map. I have a set of possible tiles stored in a 2d Image array, and my map data is stored in 2 text files. I only draw the tiles needed to fill the screen (which is 800 x 600). The code I am using looks something like this: for (int i = a; i < b; i++) { for (int j = c; j < d; j++) { g.drawImage(tile[j], j * 32, i * 32, null); g.drawImage(tile2[j], j * 32, i * 32, null); } } This method works well, and it displays correctly, however the time it is taking to draw is unacceptable (around 100ms to draw just the map on each frame). Does anyone have any suggestions on how to draw a tile based map to the screen more efficiently?