Python function calls are slow. Throw in ctypes for extra slowness. There's
really nothing you can do except limit the number of calls.

Sent from my mobile - please excuse any brevity.
On 3 May 2014 00:27, "Damien Moore" <[email protected]> wrote:

> I dont think the profiler will tell me much other than looping through
> lists of objects in python is slow (which is why I am using numpy). I think
> the problem is that, in a typical scene, there are about 10000 voxels each
> with quads that need to be drawn. 10000 calls of batch.add with all the
> python object creation (e.g. domain.create) that goes with it is just slow.
> I think I will just use gl drawarray calls and avoid batches altogether for
> this part of the code.
>
> --
> 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.
>

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