Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Graphics2D.drawImage(Image,x,y,ImageObserver): More Efficience on Small v. Large Images  RSS feed

Ike Gentz
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this game I am working on and it uses parallax scrolling. The thing I'm wondering is if there is a noticeable performance gap between calling drawImage(Image,x,y,ImageObserver) on a bunch of smaller Images which would make up the background, or calling drawImage(Image,x,y,ImageObserver) on one large Image.

In context, the size of the images would be 1920 x 1080 for if I was making a call and just drawing one large image at a time, v. using maybe around 40 x 40 images, but enough of them to fill up a 1920 x 1080 space. Any insight here on which would be more efficient or what would be the optimal image size : number of images drawn ratio? Thanks
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!