render loop now waits for all textures to be loaded