jit.gl.sketch and displaylist

kugelschreiber's icon

hello list,

i am drawing hundreds of texurized planes with jit.gl.sketch.

the geomety of the planes does not change.
i am only changing the textures and colors.

now i am running into performace issues.
sending [displaylist 1] gives a performance boost,
but the textures does not update anymore.

my question is:
is it possible to update the textures with enabled displaylist ?

that would be great !
kugelschreiber

Rob Ramirez's icon

you might have better luck with gl.multiple controlling a gl.mesh.

if you post a simple example of what you are doing, i might be able to offer more advice.

kugelschreiber's icon

hello robert,

thank you very much for your answer.
but jit.gl.multiple and jit.gl.mesh is not an alternative
because its a big patch and i have to finish it soon ....

Max Patch
Copy patch and select New From Clipboard in Max.

here is a smal example, which hopefully describes my problem:

Rob Ramirez's icon

yeah, that's just how displaylist works with gl.sketch. the texture binding is added to the displaylist, so does not get updated every frame.

i would really take a look at doing this with gl.multiple.
you can even combine all your textures into one big texture, and use the new texplane parameters that gl.multiple supports. this would give you the best performance, i believe.

kugelschreiber's icon

hello robert,

thanks a lot for the help !

in the face of not having much time, i will
buy the fastes machine i can get.
and i will try to decrease the control traffic of my
sketch object ....

just for curiosity:
is there any other single gl object, which supports
multiple different textures on multipe drawn shapes.

generating a gigantic texture in my case it is not
possible. i have to output 4 screens with 1920 x 1080.
each screen with 400 shapes showing 16 different textures
(movies)

thanks in advance,
kugelschreiber