changed how uniforms are updated on the gpu