Environment Variables link

Ren'Py accepts a number of environment variables that influence its behavior. These environment variables may disappear or change between Ren'Py releases.

The following environment variables control the behavior of Ren'Py:

If set, joystick detection is disabled. Use this if a faulty joystick is causing Ren'Py to advance when not desired.
If set, Ren'Py will refuse to go into fullscreen mode.
This prevents sound playback from occurring. If this variable contains "pss", sound playback will be disabled.
If set to 0, Ren'Py will not use draw text at the screen's resolution.
The path to an .edit.py file telling Ren'Py how to invoke a text editor. See Text Editor Integration for more information.
Sets the OpenGL texture environment.
Sets the OpenGL render-to-texture method.
This determines if Ren'Py will attempt to synchronize with the display's vertical refresh. (This prevents tearing, at the cost of potentially lowering framerate.) Set this to "0" to disable synchronization, or "1" to sync to every vertical refresh.
If set, gives the translation language Ren'Py will use.
This causes Ren'Py to reduce its memory usage, in exchange for reductions in speed.
This causes Ren'Py to disable the mouse at all times.
This causes Ren'Py to disable the pauses created by the {p} and {w} text tags.
This causes Ren'Py to reduce the number of screen updates that occur.
A pattern used to create screenshot filenames. It should contain a single %d substitution in it. For example, setting this to "screenshot%04d.jpg" will cause Ren'Py to write out jpeg screenshots rather than the usual pngs.
When set, this disables Ren'Py's graphical exception handling.
When set, skips the main menu.
When set, skips the splashscreen.
This controls the sound buffer size. Values larger than the default (2048) can prevent sound from skipping, at the cost of a larger delay from when a sound is invoked to when it is played.
This can be set to make time run faster or slower. For example, setting a timewarp of 0.5 makes things run at half-speed, while a timewarp of 2.0 makes everything run at twice normal speed.
If set to 0, Ren'Py will perform certain operations (including dissolve transforms and text rendering) at the game's virtual resolution rather than the screen's native resolution.
This should be set to a space-separated list of screen variants that Ren'Py is expected to use.

As Ren'Py uses SDL, its behavior can also be controlled by the SDL environment variables.

At startup, Ren'Py will look in the Ren'Py directory (the one containing renpy.exe or renpy.py) for the file "environment.txt". If it exists, it will be evaluated as a python file, and the values defined in that file will be used as the default values of environment variables.