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 | |
---|---|---|---|---|
Using offScreenCanvas to pre-load textures in GPU | 1 | 1569 | June 7, 2020 | |
Assigning different image texture | 6 | 304 | January 12, 2024 | |
Recommend one or more TextureLoader(s)? | 1 | 798 | February 13, 2019 | |
Updating Material map? | 6 | 20387 | September 6, 2020 | |
How to reuse the same Texture in different Sprites and change the UV individually | 13 | 4125 | December 30, 2020 |