Hey guys, I'm using pyglet for a research project I am working on and I have a few questions about vertex lists and batches. I'm using a single batch with many vertex lists to draw a bunch of lines but the performance is below what I was hoping for. Every vertex list is using the static vertex attribute format, has the same group, and has the same mode (GL_LINES). Also, I turned off vsync and I am running the script with the -O flag. The video cards we are using have 256 MB of video ram. So my questions are:
1) Is there a maximum limit (other than the limit on video memory) on the number of vertex lists that can be in a single batch or is there a recommended limit for performance? 2) The performance (measured in frame rate) drops as I increase the number of vertex lists (going from 500 lists to 1000 drops the frame rate from 30fps to 20fps) but increasing the number of vertices per list does not (going from 2 per list to 8 per list had no effect on frame rate). It seems that there is extra overhead by using more vertex lists than if I combined the lines into a fewer number. I am unfamiliar with the implementation so I am wondering, is this expected? 3) Since I already have all of the vertex lists in a single batch, is there anything else that I should do to squeeze more performance out of the system without resorting to buying new hardware? 4) Is a frame rate decrease from increasing the number of vertex lists a graphics card bottleneck as I am suspecting since the CPU utilization is not maxed while the program is running? My goal is to be able to support at least 10,000 objects that would each be able to be independent or in other words I want each object to have one or more vertex lists but since the performance so low on the machines with only 1000 vertex lists it seems like this won't be possible without buying new hardware. Thanks in advance for any help you guys can give me. -- 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.
