Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (687)
Games in Android Showcase (198)
games submitted by our members
Games in WIP (758)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Load image used by Applet: To Sprite or Not To Sprite?  (Read 894 times)
0 Members and 1 Guest are viewing this topic.
Offline williamwoles

Junior Devvie

Medals: 1

« Posted 2010-05-18 14:47:40 »

Hey guys,

I have a question about performance of loading images through Internet used by Applet. From my performance optimization experiences with Web Pages I know that sometimes to take advantage of slow TCP connection establishment it's better to combine small image (<5KB) to Image Sprites. Does this rule also applies to Applets? This is because I'm hitting around 4-5 MBytes of GFX(not a lot, but the images are quite small, most of them 7-10KBytes and from loading performance number of images can make difference). So should I combine them to Sprites and cut when game loading is being made? What size of sprites you recommend?

P.S(I was also thinking in using SmashIt to reduce the size of PNGs I use in my game and I thinks this might be also a good idea)

Thanks in advance.
Offline kappa
« League of Dukes »

JGO Kernel

Medals: 112
Projects: 15


« Reply #1 - Posted 2010-05-18 14:58:00 »

if you have lots of small images you should just stick them all in a jar, instead of downloading them individually.
Offline williamwoles

Junior Devvie

Medals: 1

« Reply #2 - Posted 2010-05-18 15:41:15 »

Good point, thanks!
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

roseslayer (573 views)
2016-08-06 11:43:29

roseslayer (529 views)
2016-08-06 09:43:11

xTheGamerCodes (601 views)
2016-08-04 15:40:59

xTheGamerCodes (596 views)
2016-08-04 15:40:24

orrenravid (942 views)
2016-07-16 03:57:23

theagentd (1020 views)
2016-07-11 14:28:54

Hydroque (1125 views)
2016-07-06 05:56:57

Hydroque (1070 views)
2016-07-03 08:52:54

GrandCastle (888 views)
2016-07-01 09:13:47

GrandCastle (647 views)
2016-07-01 09:09:45
Rendering resources
by Roquen
2016-08-08 05:55:21

Rendering resources
by Roquen
2016-08-08 05:52:42

Rendering resources
by Roquen
2016-08-08 05:50:38

Rendering resources
by Roquen
2016-08-08 05:49:53

Rendering resources
by Roquen
2016-08-08 05:32:39

Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!