Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Cutting images or not  (Read 264 times)
0 Members and 1 Guest are viewing this topic.
Offline aazimon

Full Member
**

Posts: 208
Medals: 5



« on: 2012-01-30 12:48:15 »

I just read a recent post, where they mentioned cutting a sprite image and then a response to use subImage() instead. It sounds like subimage may be a tiny bit slower. So which is better? Or does it not matter?
   If I plan to use Slick2D, does it matter with that?
Offline theagentd

JGO Wizard
****

Posts: 1392
Medals: 88



« Reply #1 on: 2012-01-30 14:12:21 »

It should be "better" to keep the image as a single large image and just keep track of which parts of the large image are individual "sub-images", but in practice the difference is negligible. The only practical difference is the extra load time to split the image, but again, this too is negligible.

There is no god.
Offline ReBirth

JGO Wizard
****

Posts: 1272
Medals: 19



« Reply #2 on: 2012-01-31 07:13:24 »

I didn't understand too, until I found libgdx need 2^n px sized image file Grin

Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.068 seconds with 20 queries.