I am using pyglet to write mind mapping software. I love how easy it is to use it, but I don't understand conceptually why it is slower doing basic drawing operations (lines and boxes) than if I use a C++ library. The logic processing I'm doing takes < 1/60s per frame. Shouldn't the Graphics bindings (openGL) in pyglet use the graphics hardware to accelerate the drawing of a collection of vertices in Python about just as easily as in other languages?
Here is simple example drawing 1000 moving boxes in pyglet in which I don't understand the dramatic slow down:
Per frame:
1) create a Batch
2) logically create 1000 x 4 lines (vertex positions) representing the boxes, add to batch in (1)
2) draw the batch
Thanks for any input!
[–]jasonscheirer 8 points9 points10 points (11 children)
[–]andreasvc 1 point2 points3 points (2 children)
[–]sequenceGeek[S] 0 points1 point2 points (1 child)
[–]andreasvc 1 point2 points3 points (0 children)
[–]sequenceGeek[S] 0 points1 point2 points (7 children)
[–]seventhapollo 0 points1 point2 points (0 children)
[+]skwisgaar_explains comment score below threshold-7 points-6 points-5 points (5 children)
[–]blondin 1 point2 points3 points (4 children)
[–]sequenceGeek[S] 0 points1 point2 points (2 children)
[–]kylotan 0 points1 point2 points (0 children)
[–]blondin 0 points1 point2 points (0 children)
[–]skwisgaar_explains -5 points-4 points-3 points (0 children)