def process_queue(self):
        """ Processes the n first commands of the queue """
        pointer = self._data_texture.modify_ram_image()
        num_commands_exec = self._command_list.write_commands_to(pointer, self._commands_per_frame)
        self._pta_num_commands[0] = num_commands_exec
 Processes the n first commands of the queue 
metadrive/render_pipeline/rpcore/gpu_command_queue.py