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
Images in or out of Jar file?
Page 1 of 12 Replies - 1839 Views - Last Post: 26 December 2012 - 07:49 PM
Replies To: Images in or out of Jar file?
#2
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
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
#3
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
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|