I have a list of images ( ~ 100 images in PNG format) that I need to display in a timed sequence (like a movie)
I use textures to display the images (like in the demo http://www.geeks3d.com/hacklab/20151207/how-to-control-the-window-opacity-on-the-raspberry-pi/
Creating the texture works: with the function gh_texture.create_from_file_v3 from the API (http://www.geeks3d.com/geexlab/reference/scripting_texture.php
). I load the images at initialization, and then I am able to display the images in the FRAME script. But I am currently limited to 10 textures simultaenously in the GPU.
Is it possible to update the GPU textures from a seperated thread / process ? ( I cannot do it in the FRAME script because it takes too much time to load the texture from file, affecting the display)
Also I tried to use the functions to update textures : gh_texture.update_gpu_memory_from_file
but neither worked or I was not able to use them properly..
And I didn't find any way to free the textures from the GPU ?
Maybe it could be done with gh_texture.reset_texture_unit
? But I don't understand the arguments of the function.
Could someone help in those matters ?
Thanks and best regards