This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Game Development and the fly likes Graphics2D.drawImage(Image,x,y,ImageObserver): More Efficience on Small v. Large Images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Graphics2D.drawImage(Image,x,y,ImageObserver): More Efficience on Small v. Large Images" Watch "Graphics2D.drawImage(Image,x,y,ImageObserver): More Efficience on Small v. Large Images" New topic
Author

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

Ike Gentz
Greenhorn

Joined: Jan 01, 2013
Posts: 13
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Graphics2D.drawImage(Image,x,y,ImageObserver): More Efficience on Small v. Large Images
 
Similar Threads
Image Observer
Moving around an Image the is larger then my screen.
Retina and other high resolution displays - worth it?
Help with graphics
Drawing Image Doubles Memory Consumption