On 02/05/14 14:01, Damien Moore wrote:
> Hi, I am playing around with a little voxel based app that uses pyglet for 
> display and numpy for CPU based calculation. One of the issues I am having 
> with performance is that it takes several orders of magnitude more time to 
> repeatedly call batch.add on each of my voxels than to call batch.add once by 
> collapsing my voxels into a single list. There is very little difference in 
> drawing performance between these approaches, it's just the batch.add calls 
> that are the problem. I would prefer to have each voxel have its own vertex 
> list because then it is easier to just edit the ones that are being changed 
> by the user, but I can't live with the performance loss. Anyone have any 
> thoughts on how I might work around this limitation?
> 

You can try with a profiler to see what part of Batch.add is slowing you
down.

Regards,

Juan

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to