Re: [PyOpenGL-Users] OPENGL
Brought to you by:
mcfletch
From: horace <hor...@gm...> - 2007-03-16 04:40:54
|
would it be possible to write a tool which automatically converts ctype wrappers to pyrex? wouldn't that be nice? i am no computer scientist though and maybe this is a stupid idea which isn't feasible. :) On 3/15/07, Thomas Heller <th...@ct...> wrote: > > Greg Ewing schrieb: > > Mike C. Fletcher wrote: > >> 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? > > Andrew Dalke as written two nice articles about ctypes that I know of: > > http://www.dalkescientific.com/writings/NBN/ctypes.html > http://www.dalkescientific.com/writings/NBN/c_extensions.html > > The latter has some comparisons between ctypes and a C-coded > extension. > > Thomas > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > |