(Using J2D).
I’m creating a vertical scrolling shoot-em-up. I’m currently drawing the background by iterating a 2d array (actually a List of Lists) of 32 x 32 images and drawing them onto a Canvas using drawImage. This is horrifically slow. Profiling shows the time is spent in the drawImage() method.
I think my approach is flawed. Would I be better off concatenating my tiles into one image and drawing that? Or some other approach?
thanks, Don