jit.gl.sketch and displaylist

Feb 27, 2011 at 4:19pm

jit.gl.sketch and displaylist

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

#55222
Feb 28, 2011 at 5:56pm

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.

#198751
Feb 28, 2011 at 11:55pm

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 ….

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

– Pasted Max Patch, click to expand. –
#198752
Mar 2, 2011 at 7:04pm

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.

#198753
Mar 2, 2011 at 8:02pm

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

#198754

You must be logged in to reply to this topic.