Title: Load times on your webclient/regular client Post by: Number5 on February 05, 2012, 02:42:30 pm I've fixed this many times on many different servers, What i have done is take your raw file and compressed it for you. The load time on your client is rediculous! http://dl.dropbox.com/u/28109402/models.dat <--- models.dat put this into your cache along with this http://dl.dropbox.com/u/28109402/models.idx <--- models.idx this will reduce load times by 70% It also has abyssal vine whip/completionist capes in it, I can give you my itemdef.java if needed. Secondly you will need this code in modeldecrompresser.java
public static void models() { try { DataInputStream indexFile = new DataInputStream(new FileInputStream(signlink.findcachedir() + "/models.idx")); DataInputStream dataFile = new DataInputStream(new FileInputStream(signlink.findcachedir() + "/models.dat")); int length = indexFile.readInt(); for(int i = 0; i < length; i++) { int id = indexFile.readInt(); int invlength = indexFile.readInt(); byte[] data = new byte[invlength]; dataFile.readFully(data); Model.method460(data, id); } indexFile.close(); dataFile.close(); } catch (Exception e) { e.printStackTrace(); } } Enjoy number5. Title: Re: Load times on your webclient/regular client Post by: Keagan on February 06, 2012, 12:06:44 am Ill modify that to fit, But ill use my own models.
Title: Re: Load times on your webclient/regular client Post by: Number5 on February 06, 2012, 08:52:35 pm Alright but if you cant find a model compressor I'd be more then happy to give you one. + if your looking for a good coder just message my email about it. |