Ways to stop visualization in code besides headless mode

Hi. I found that using headless mode results in bad learning performance (lower rewards), so I have been training by starting the code with headless=False, and then pressing v to stop the rendering for faster learning.
Now I have a project where I have to restart isaacgym to train an agent multiple times, and I want each iteration to run without rendering. I cannot be there each time it restarts to press v, so is there a way I can force this in the code?
Thank you.