On 9/26/08, josch <[EMAIL PROTECTED]> wrote: > > > On Sep 25, 11:25 pm, "Alex Holkner" <[EMAIL PROTECTED]> wrote: > > It may start to make less sense... it's a judgement call you'll have > > to make based on your application behaviour. > > exactly! > but to make this decision i have to get an understanding of what will > speed up things and what wont. > in make-me drawing a lot of offscreen was okay as the landscape was > not animated and the batch was really barely touched. > > I quote you: "Remember that batches work fastest when you don't touch > them" > > what does touching mean in this sense? is touching changing the > texture coordinate? > is touching every single modification to the vertex lists?
It just means that (like anything with computers), the less you do, the faster it happens. Changing the size of a vertex domain is more expensive than just modifying one in place, and creating a new domain (i.e., by creating a vertex list that uses a previously unseen vertex format) is still more expensive. > > and is there a difference between different amounts of changes i can > do to the batch? like whether i update one vertex list in the batch or > two or whether i update a lot of texture coordinates in a given vertex > list or only a few ones. For this kind of information you're best off creating some simple test cases and measuring the performance. Bear in mind that these measurements will be dependent on your video driver, and whether or not VBOs are enabled. 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 -~----------~----~----~----~------~----~------~--~---
