Re: [PyOpenGL-Users] Rolling spectrogram with pyopengl
Brought to you by:
mcfletch
From: Timothée L. <tim...@lp...> - 2009-12-10 14:48:04
|
René Dudfield a écrit : > 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 > <...> > > Otherwise wrap some calls with a cython or C extension for more speed. > Hi René, I have now written a little C extension to wrap, and openGL calls have almost disappeared from the profile : openGL calls went from 11.89 % of the total time in the previous profile, down to 1.84 % with the C extension ! I have kept the whole initialization in pyopengl since it's not as performance critical. Thanks for your sound advice ! Best regards, Timothée |