Tom Lanning wrote: > 1. I am not doing any mipmapping. I leave that to the underlying system.
True, but you can't guarantee it most of the time. Mipmapping is good if you are doing large scale work like terrain visualisation, but usually not worth it for smaller systems. > 2. I am measuring memory use before and after garbage collection. > However, I am concerned about the peak size of the application. (Some > memory is available after items go out of scope/reach.) Agree. The oft stated "wait for the GC" scenario is totally bogus IMO. It is the peak figure that is critical, and that, when combined with java's image handling architecture is total useless. > the ".dispose()" and ".flush()" calls to help keep memory use under control. Problem is that it doesn't help. The way Sun have written the image loaders, if you call flush() and then ask for the height or width of the image after that, it loads the whole @($%^$#@* image back into memory again. A totally stupid design if you ask me. > 4. :-( I am beginning to think that is what I will need to do. However, > I am not sure if much of the extra memory is being consumed there. I > suspect that a lot of it is used in the initial image loading. After 4 years of fighting Sun's pathetic image loading implementation, I've basicaly ignored it in any new projects I do. I do *everything* from scratch. I use my own custom image loader libraries, I do my own memory management and never, ever use Toolkit.createImage() if it can be helped. 5 years ago people were bitching on the Berkeley Advance Java list about the image handling in Java and Sun's implementation. Seems they still don't want to listen because my recent tests with the ImageIO system shows that the *same* fundamental bugs remain. It really is pathetic that they even refuse to acknowledge that it is an issue. -- Justin Couch http://www.vlc.com.au/~justin/ Java Architect & Bit Twiddler http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".