Try not to rebind textures and shaders as often. Perhaps by first sorting our meshes by shader and texture