Setting up an efficient renderer in OpenGL

Solved the Nsight issue here.