def update(self):
        """ Main update method to process the GPU commands """
        self.internal_mgr.set_camera_pos(Globals.base.camera.get_pos(Globals.base.render))
        self.internal_mgr.update()
        self.shadow_manager.update()
        self.cmd_queue.process_queue()
 Main update method to process the GPU commands 
metadrive/render_pipeline/rpcore/light_manager.py