3 ms·
All rendering is in some capacity incremental. Sometimes you keep that (incrementally constructed) list of vertices around, of course. If you look at the old i
by kevingadd 14y ago
All rendering is in some capacity incremental. Sometimes you keep that (incrementally constructed) list of vertices around, of course.
If you look at the old immediate mode API, fundamentally, you're just passing in some floats that it copies into a buffer. This is not an expensive thing to do. It's not free, sure, but CPUs aren't bad at it. It's just some overhead compared to if you were to hand an entire buffer (in a known format) full of floats to the GPU at once. Some extra function calls, etc. If your app is only drawing a few thousand vertices, the overhead difference here is trivial... and if your app is drawing a million vertices, you won't be using immediate mode anyway.
- greggman 14y agoModern GPUs have to put the vertices in vram before they can render them. That means immediate mode emulation is effectively this everyframe: a) copy all vertices from user code to some cpu buffer b) at draw time, copy cpu buffer to vram c) ask GPU to draw steps A and B are very expensive CPU wise as well as waste memory. vs OpenGL ES 2.0 init time: put vertices in vram everyframe: ask GPU to draw