Login  Register

Re: Shader Uniform Sampler2D Update in TextureUnitState not applied

Posted by basti on Nov 24, 2023; 9:45am
URL: https://forum.jogamp.org/Shader-Uniform-Sampler2D-Update-in-TextureUnitState-not-applied-tp4043151p4043156.html

Hello rndmbt,
and welcome to the forum :)

I think i found a solution utilizing a pool of Texture2D.
CustomRenderingTest.java

I also took the liberty of replacing the while-loop with
a Timer and adding a WindowListener because the program
wasn't terminating for me.
With poolSize=50 memory usage peaks at about 215MB for me.

hope this helps,
basti