Basically, when you load something to a batch, you add the sprite's information into your video-card memory. The batch itself is a list in the hardware memory that only needs a single software command to be sent to the video-card for it to be drawn. You can do it yourself using OpenGL's display lists; batches just do it all for you in a very very convenient manner. Loading things into video memory requires more communication with the video-card which makes things a lot slower, and migrating between batches requires everything to be reloaded.
Simply put, and if you require further depth on the subject you'll probably need to read about OpenGL and how video-cards work. On 10 Apr, 12:26, Somelauw <somel...@yahoo.com> wrote: > Can someone explain how batches work. I know that sprites which have > been added to a batch, will be drawn faster. But can someone explain > why those sprites will be drawn faster and why you shouldn't migrate > sprites between batches. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to pyglet-users@googlegroups.com To unsubscribe from this group, send email to pyglet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---