Re: [PyOpenGL-Users] OPENGL
Brought to you by:
mcfletch
From: Greg E. <gre...@ca...> - 2007-03-13 12:47:37
|
Mike C. Fletcher wrote: > The answer is basically that the > maintenance headaches outweigh the performance gain (to the extent that > the system would likely have been abandoned if we'd kept on with the > hand-coded, and then SWIG-coded wrappers). Have you considered using Pyrex? > Actually, ctypes is quite slow compared to e.g. SWIG. That's because it > does a lot more work at run-time for every call than a SWIG or similar > system does. OpenGL-ctypes (PyOpenGL) is even slower because it has to > provide the array and similar semantics that aren't available in ctypes' > core. This is a little worrying, as OpenGL calls are something you really don't want being inefficient. I'm hoping this is more of a theoretical than practical concern. Has anyone done any measurements? -- Greg |