I'm trying to determine if the following is feasible with pyglet: 1) 16x16 tiles 2) Resolution of at least 1440x900 3) Huge map size (5000x5000) 4) Maintain 60fps
I have it working now, but the frame rate drops to the mid-20s and it flickers a lot even with vsync=True (much more in Kubuntu that Windows). I'm building the initial screen in a Texture, then blitting it. As the screen scrolls left (for example), I grab the appropriate region of the texture and blit it back to itself one tile width over, then fill in the newly empty space with tiles. Is there a better way to do this? My map is a simple list that contains lists of tile index [ [1,1,1,1,2,2,2,3,...], [3,4,4,4,2,2,2,3,...]] I looked at other libraries, but the maps are too large to keep the whole thing rendered in memory. -- 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.
