I don't understand too much this engine class, but if you do this:
scenes.py
+from pyglet import image
-self.tile = engine.resource.load('grass1.png')
+self.tile = image.load('grass1.png')
It works at 96FPS (I also removed fps limit and vsync), so I bet the problem
is related to your resource loader. Anyway, with pyglet I get far more FPS,
so there is something wrong.
Besides, may be pyglet 1.1 has what you need:
http://pyglet.org/doc/1.1/api/pyglet.resource-module.html
----- Original Message -----
From: "Juan Jose Alonso" <[EMAIL PROTECTED]>
To: "pyglet-users" <[email protected]>
Sent: Friday, March 07, 2008 1:00 AM
Subject: Why my simple scene run too slow ?
>
> Hi guys, have a problem on my game, here extract a little version of
> my game that also have the fps problem.
> also i can see the pink tinted, alpha channel of the ,png images about
> one second at window startup.
>
> Here a link with my simple example for run it.
> http://dump.no/files/ccaffc285aeb/test.zip
>
> And here the code for see without download it. (without images)
>
> http://rafb.net/p/79RQlB27.html
>
>
> Someone can help me? on my two machines i get 13fps aprox. (And i dont
> have problems running others pyglet stuff)
> I test on WindowsXP and Ubuntu Linux, with pyglet 1.0.
>
>
> Happy hacking and blessed :)
> >
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.21.5/1314 - Release Date:
> 05/03/2008 18:38
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---