Thanks Luke,
I did make some checks with vispy-cprofile switch and found that there
is a big amount of time consumed in the _gl2.py (glLinkProgram), which
isn't found in the gloo program.
I briefly looked over the code in ImageVisual and found that when using
set_data the _texture is set to None. This takes the draw-routine to
recreate the whole texture2d. In the gloo script I just use the set_data
of Texture2D. So this recreation may consume this much time.
To dig deeper I changed my on_draw routine to use set_data of Texture2d
directly and use the draw from underlying _program:
self.image._texture.set_data(np.float32(self.data))
self.image._program.draw('triangle_strip')
This actually runs with 60 fps, but I lost the 90deg shading and get a
black/white drawing only.
This is as far as my knowledge will take me. I would really like to use
the Visuals because of the easier setup and use. Do you see any way to
set new data to the ImageVisual without recreation of the whole
Texture2D. If this behaviour could be overcome I could also open an
issue on github.
Thanks again!
Cheers,
Kai
> Auf dem Huegel 20 |
+49 228 739083 <tel:%2B49%20228%20739083>
> D-53121 Bonn |
kai.mue...@uni-bonn.de
> <mailto:
kai.mue...@uni-bonn.de>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "vispy" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
vispy+un...@googlegroups.com
> <mailto:
vispy%2Bunsu...@googlegroups.com>.
> --
> You received this message because you are subscribed to the Google
> Groups "vispy" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
vispy+un...@googlegroups.com
> <mailto:
vispy+un...@googlegroups.com>.