Hello

The sample code you gave recreates the Text object each time it's
displayed; this is fairly costly, and you will get better performance
if, when redisplaying the same string, you use the same Text.

There is work in development at the moment to improve text rendering
performance (and features), you'll start to see these in the coming
year.  You can also tackle the problem yourself given a reasonable
OpenGL background.

Regarding your question about rendering the text to a buffer: this is
possible, but troublesome.  pyglet provides no high-level functions
for this, and the OpenGL necessary is not trivial.  You can get a
virtually equivalent performance by using a display list for each
Text, though (any tutorial on OpenGL can get you started with this).

> also, might someone help me make the menus keep going down when you
> hold down the down arrow? right now they just move down one entry and
> is a pain.

Have a look at the on_text_motion event.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to