okay i got the trick.
to do a vertex_list.delete() and batch.add() for each movement is no
problem as long as one does not pack each tile into its own vertex
list so that delete() and batch.add() are called very often (this
seems much overhead) but organizes all tiles with the same texture in
one vertex list that is added with one batch.add() per texture used to
draw the scene.
this way i call batch.add() only twice per redraw (because for now i
only do have two textures) and not once for every tile which gets
unacceptable if there are ~2300 tiles when i go fullscreen.
no i wonder how to best organize my images into textures. as i figured
it's best to have as few textures as possible to only need few
batch.add() calls. but then the question is how big a texture should
be at maximum? i have a few thousand tile types i want to draw.
plz correct me if i'm heading the wrong way ;)
cheers

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