<p>I'm writing opengl code in python using the library pyglet. When I draw to the screen using pyglet.graphics.vertex_list or pyglet.graphics.batch objects, they are very slow (~0.1 fps) compared to plain old pyglet.graphics.draw() or just glVertex() calls, which are about 40fps for the same geometry.
In Linux the vertex_list is about the same speed as glVertex, which is disappointing, and batch methods are about twice as fast, which is a little better but not as much gain as I was hoping for.</p>

[{'answer_id': 67921, 'author': 'Steve Landey', 'author_id': 8061, 'author_profile': 'https://Stackoverflow.com/users/8061', 'pm_score': 1, 'selected': False, 'text': '<p>I don\'t know personally, but I noticed that you haven\'t posted to <a href="http://groups.google.com/group/pyglet-users" rel="nofollow noreferrer">the pyglet mailing list</a> about this. More Pyglet users, as well as the primary developer, read that list.</p>\n'}, {'answer_id': 835601, 'author': 'Jonathan Hartley', 'author_id': 10176, 'author_profile': 'https://Stackoverflow.com/users/10176', 'pm_score': 4, 'selected': True, 'text': '<p>Don\'t forget to invoke your pyglet scripts with \'python -O myscript.py\', the \'-O\' flag can make a huge performance difference.</p>\n\n<p>See pyglet docs <a href="https://pyglet.readthedocs.io/en/pyglet-1.3-maintenance/programming_guide/gl.html?highlight=performance#error-checking" rel="nofollow noreferrer">here</a> and <a href="https://pyglet.readthedocs.io/en/pyglet-1.3-maintenance/programming_guide/options.html?highlight=debug_gl" rel="nofollow noreferrer">here</a>.</p>\n'}]
['https://Stackoverflow.com/questions/67223', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/10176/']