[Twisted-Python] Two main loops

Maarten ter Huurne maarten at treewalker.org
Sun Nov 11 17:40:30 EST 2007

On Sunday 11 November 2007, Jasper wrote:
> Jean-Paul Calderone wrote:
> > Practically speaking, you probably don't need to render more than about
> > 3000 frames per second.  ;)
> >
> > Jean-Paul
> That depends.  When I send moderately sized objects over Twisted, this
> approach causes my frame rate to stop while Twisted is busy, and worse
> makes my GUI non-interactive.  For a game, this is generally
> unacceptable...

Why would that happen?

Twisted never blocks; if it has to wait for something (such as a 
transmission buffer becoming ready to accept more data), it will register a 
callback and the reactor will continue (and call your rendering code).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20071111/28570ead/attachment.pgp 

More information about the Twisted-Python mailing list