2 Replies - 7521 Views - Last Post: 26 December 2012 - 07:49 PM Rate Topic: -----

#1 Randor  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 106
  • Joined: 12-October 10

Images in or out of Jar file?

Posted 26 December 2012 - 03:40 PM

Hello,

so another "theory" question, which way is better having your images in your jar file or outside the jar file?

I wanna try to maximise the speed of the game

Thank you
Bob
Is This A Good Question/Topic? 0
  • +

Replies To: Images in or out of Jar file?

#2 CasiOo  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1398
  • View blog
  • Posts: 3,097
  • Joined: 05-April 11

Re: Images in or out of Jar file?

Posted 26 December 2012 - 07:12 PM

I don't think there is much of a difference if there even is any (I haven't got any sources or done any tests on this)
You should, in my opinion, be worrying about other parts of recourse management, and not if they are loaded from a jar or not
Some questions I find more interesting:
- How often will the images need to be loaded? It might even just be once and in the start of the game
- When to load the images?
- Preload the images? Maybe you can predict the player's next move, and load them beforehand. Keep the memory usage in mind
- Is one image recourse being reused and not loaded, if the image is already in memory?

there might be even more important questions to answer first =D
Was This Post Helpful? 0
  • +
  • -

#3 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8332
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: Images in or out of Jar file?

Posted 26 December 2012 - 07:49 PM

If you are really that concerned, don't use .jar at all just push the .class to your clients side
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1