On 23/12/2008, at 1:33 AM, jc <[email protected]> wrote:

>
> Hi,
>
> I'm getting a big performance hit on first blit of an image in a very
> time critical piece of code.  Subsequent blits are fast (actually 3rd
> and up).  Is there a way to prepare my images beforehand in order to
> prevent this?  I have lots of time elsewhere in the code.  Would
> requesting the texture be sufficient to force decompress the image in
> advance?
>
> My code is using the simplest method, image.load, image.blit
>

Calling image.get_texture() will cache the texture, and should get rid  
of the initial delay.

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