On Thu, Feb 14, 2008 at 1:30 PM, Bernie Roehl <broehl@gmail.com> wrote:
I'm also wondering what would be the advantages of using a coiterator...?
As an experiment, I tried switching to using a coiterator. I got a 30% increase in framerate! My code now looks like this: class RendererIterator: # used if usingCoiterator is True def __iter__(self): return self def next(self): ogre.WindowEventUtilities.messagePump() root.renderOneFrame() from twisted.internet.task import coiterate renderSystem._initRenderTargets() root.clearEventTimes() coiterate(RendererIterator()) reactor.run() Seems to work okay, but haven't tested it extensively. Any Twisted-gurus have any comments/suggestions/cautions? -- Bernie Roehl Mail: broehl@gmail.com