In my project I have to load a texture that is a spritesheet used for a [icode]Theme[/icode] for my GUI controls. The theme loads fine, but it takes about 30ms (only 1ms for theme creation, 29ms for texture loading) so I would like to speed up my texture loading. As of now I load many of my textures through serialized objects where the png data is in a byte array. However the process still takes too long. I was hoping someone on JGO could help me find some ways to speed up the efficiency of my code.
Here is the pastebin for my Texture class, my ObjectLoading class, and my SerializableBufferWrapper class: http://pastebin.java-gaming.org/f3717614b0e19