FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Bugs
   Software Bugs
(Moderator: fry)
   exported applet load times
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: exported applet load times  (Read 581 times)
mfischler

Email
exported applet load times
« on: Jul 9th, 2004, 1:13am »

Hi all,
 
When I write some code in Processing and export it, what I've found is that the more images you use, then the longer it takes for the applet to start. I'm using about 15 images and the load time is significant, even though the jar is only 250k
 
The example and code is here:
http://www.mattfischler.org/index_t.html
 
fry


WWW
Re: exported applet load times
« Reply #1 on: Jul 9th, 2004, 1:59am »

processing by default will turn off "caching" of images, which for images that are changing (the majority of p5 projects.. i.e. a webcam type thing or something generated on disk) it forces them to reload.  
 
unfortunately, this makes the whole .jar reload each time (someone discovered elsewhere on the board).
 
the fix is to use loadImage("filename.jpg", false) when you want the cached version (your case).
 
mfischler

Email
Re: exported applet load times
« Reply #2 on: Jul 9th, 2004, 10:11pm »

fry,
 
I tried what you suggested and I still experienced the same problem: very long load time. I tried both true and false settings for the loadImage and neither seemed to effect results.
 
--Matt
 
fry


WWW
Re: exported applet load times
« Reply #3 on: Jul 15th, 2004, 7:57pm »

k, sounds like something bad.. will look into it further. the image i/o is getting reworked a bit for megabucket as a result of some of these things.
 
(moving this over to bugs)
 
Pages: 1 

« Previous topic | Next topic »