The only really substantive thing I did here, besides delete a bunch of commented-out code, was make it so that we load the VAO for the skybox only once. The way it was, we were loading and allocating on the GPU a brand new VAO every time we drew. This could lead to running out of GPU memory, and make the program slower.
The only really substantive thing I did here, besides delete a bunch of commented-out code, was make it so that we load the VAO for the skybox only once. The way it was, we were loading and allocating on the GPU a brand new VAO every time we drew. This could lead to running out of GPU memory, and make the program slower.