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 & HelpOpenGL and 3D Libraries › loading/displaying lots of images in OPENGL
Page Index Toggle Pages: 1
loading/displaying lots of images in OPENGL (Read 818 times)
loading/displaying lots of images in OPENGL
Feb 20th, 2010, 7:04pm
 
okay i'm loading and displaying batches of 320x240 images, and i can load somewhere around 300-400 of them into the sketch before it runs out of memory.

are there any ways to increase this number?

i'm using the Processing image() function for displaying. Are there maybe alternative ways for displaying images as textures which compress the source images somehow and/or increase performance?

thanks!
Re: loading/displaying lots of images in OPENGL
Reply #1 - Feb 21st, 2010, 2:32pm
 
The memory for OpenGL is unoptimized. It's using RGBA and it requires a lot of memory. You may try two things:

1- Increase your memory allocation: http://processing.org/reference/troubleshooting/#memory

2- Try to load textures only when they are required (Do you really use 400 images at the same time?).
Page Index Toggle Pages: 1