On 4/12/08, Nathan <[EMAIL PROTECTED]> wrote: > > Okay, I believe I've found that the biggest performance difference > seems to be in creating Text objects. Are Text objects supposed to be > dramatically slower to create in 1.1 than in 1.0 on OS X 10.5? >
Yes, actually (not on OS X specifically). In 1.0, Text objects are fast to create because the text is laid out lazily by the draw method. In 1.1 Text uses TextLayout, which by necessity lays out text immediately. The net combination of construction + draw will probably be slightly slower in 1.1 than 1.0 as well, due to the more complex layout algorithm. I haven't looked at your code yet, but anything that creates Text objects regularly can probably be optimised by creating a fixed number of Text objects, and updating the text and style of each only when appropriate. Alex. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
