Why is there a big difference in performance between the following two scenarios?
1.) Make 1 line object with 300 points (framerate is in the hundreds)
2.) Make 150 lines with each having 2 points (framerate is in the teens)
I am a bit confused by this – shouldn't this be the same performance-wise? I can paste some example code if anyone wants to see for themselves.
simple: draw calls to openGL
first example only uses a single draw call
while the second uses 150
this is an expensive openGL call to make.