Does anyone have any idea how i can access a loaded texture from multiple threads? I need the texture values for topological calculations in each thread. Passing the same OffScreenCanvas with the texture in it to every constructor in every thread doesn’t seem very efficient to me since I’m flooding the cache with unnecessary clones of the same texture or OffScreenCanvas. With a small texture it is ok, but the way is still not elegant. So i’m looking for a way to access a loaded texture from all treads. I don’t need the texture for renderings. For me, the texture is just a large database that I would like to be able to access the pixel values from every thread.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Assigning different image texture | 6 | 302 | January 12, 2024 | |
Recommend one or more TextureLoader(s)? | 1 | 787 | February 13, 2019 | |
Updating Material map? | 6 | 19881 | September 6, 2020 | |
How to load object separately from its texture? | 1 | 520 | June 3, 2019 | |
How to ensure all texture images are loaded memory/cache before the scene is displayed? | 2 | 764 | March 13, 2023 |