We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Dealing with large number of images
Page Index Toggle Pages: 1
Dealing with large number of images (Read 330 times)
Dealing with large number of images
May 21st, 2008, 4:15am
 
Hello, I'm mocking up an applet that allows a user to navigate through a 2D space of images with mouse gestures. I need to be able to show about 8 or more 320*240 on screen and let the user quickly scroll through more that will remain offscreen. Loading all of them into memory (hundreds or even thousands) is not an option. Does any one have any good strategies for dealing with a large number of images?

I assume I'll have to dump images from memory when they go far enough offscreen and load them with a seperate thread when they near the edges.
Re: Dealing with large number of images
Reply #1 - May 21st, 2008, 9:57am
 
I think thats the way you'd have to do it, to be fair, 320x240 images will be pretty fast to load, you might not even need to bother with loading a seperate thread.
Page Index Toggle Pages: 1