- Home /
Need some clarification how the batches stats affects performance.
Hello, I need some help understanding how the batches affects the performance, or if it even has an effect at all. So I created this line grids using the GL Lines, it basically draws lines of an x by y grid, and the intersections are the 3d coordinates, I am calling the material setpass call only once for all the lines instead of calling it the individual lines so the drawcalls(or SetPass calls) is reduced to only 1 (well actually 2, since im using 2 materials). But the batches stays really high when there is a lot of lines shown. I created the logic so that only the lines that will be visible inside the screen will be shown, so when the camera zooms in or out, those stats updates as well. THere are 2 attached images that shows the stats on both the zoomed in and out. the batches drops when there are only few lines drawn.
Now, this stats doesn't really bothers me since whats important to me is the low draw calls(btw, if I call the material setpass call on the individual lines, the drawcalls/setpass calls becomes the same as the batches value in the stats). I am just curious about this batches stats. So any clarification would be nice. Thanks