redblobgames / helloworld-sdl2-opengl-emscripten

Basic program that uses SDL2+OpenGL, compiling both locally and via emscripten

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove premature optimization of not sending vertex data

redblobgames opened this issue · comments

There's code in there to not send vertex data except every 100th frame. This was interesting at the time but not useful when I'm using this project as a starter template. Take that out.

The root of the problem is that I had split the static and dynamic vertices and was trying to avoid writing the static vertices each frame. That optimization was premature and it makes it harder to write correct code.