Open GL out of memory error // memory flush?
in
Core Library Questions
•
1 year ago
Hello there,
does anyone know how to empty the memory buffer within opengl?
Or how to overwrite an existing PImage without using new memory space?
P3D seems to handle this on its own, as i can load as many images as i want (not at the same time),
whilst OpenGl only fills the memory and then collapses.
I only need to display around 12 pictures maximum at the same tame, wich works totally fine with opengl, but from time
to time these pictures have to be replaced by randomly chosen other pictures, that are taken while the program runs. I cant tell how many pictures will be made in total. Their all the same size (around 400x400 pixels) and pngs.
so far i tried two ways:
-load all images into their own PImage and just display the ones selected ( works, but if the total amount of images gets bigger than my memory space this will collapse and its not nice to have all the memory blocked always by the images of which only few are used)
-create some PImages and sometimes load some new Images into them(collapses after a short time, as the load function seems to only add a new picture to the memory)
i hope someone can help me,
thanks a lot
christian
1