Re: [PyOpenGL-Users] Rolling spectrogram with pyopengl
Brought to you by:
mcfletch
From: René D. <re...@gm...> - 2009-12-10 10:41:44
|
2009/12/9 Timothée Lecomte <tim...@lp...>: > Now this profile brings another question: > wrapper:__call__ seems to use a lot of slow python calls > (calculate_pyArgs, calculate_cArguments...) whereas it does not seem to > spend so much time in the actual openGL (3% if I count correctly). Is > there a way to improve this ? > > I hope this was not too complicated ! Thanks for your help. > > Timothée > > yes, you can use the raw calls. eg, import OpenGL.raw.GL OpenGL.raw.GL.glTexSubImage2D They don't have the niceties of the other wrappers, but can work fine... and there are less calls. Otherwise wrap some calls with a cython or C extension for more speed. cu, |