Java 2D Graphics Issues

1) Is their performance loss when creating a new image with transparency transparency by painting just a few things on it and then painting on top of another; compared to the same image under the same conditions, but with the background cleared to an opaque color?

2) What is the importance of losing performance when drawing multiple images versus drawing one large image that includes all of them?

3) Is it better to draw small pieces of images from a large image (sprite sheet) or from their separate image? Note that I am talking about memory images, their representation on disk does not matter.

+2


a source to share


1 answer


There are many unknown parameters here:

  • What is Base OS
  • What is JVM vendor / version
  • How much memory is available on the video card.
  • How big is the image
  • Is hardware image acceleration


The only practical way to answer your questions is by running tests.

+1


a source







All Articles