The default behavior of Redshift can be further customized using several additional environment variables:
REDSHIFT_CACHEPATH
|
The Redshift disk cache path is normally defined as a system-wide preference in the
preferences.xml file in the Redshift local data path. The value set in the global preferences can be overridden using the environment variable
|
REDSHIFT_TEXTURECACHEBUDGET
|
Similar to
|
REDSHIFT_MAXLOGSTOKEEP
|
By default, Redshift stores the log files for the last 10 sessions. The number of log files to keep can be adjusted by setting the
|
REDSHIFT_GPUDEVICES
|
When defined, this variable overrides the which GPUs will be used for rendering (normally defined in the preferences.xml file in the Redshift local data path). Set
|
REDSHIFT_LICENSERETURNTIMEOUT
|
By default, Redshift automatically checks out a license when render activity first occurs and holds onto the license until the host application (C4D, etc) is closed. Alternatively, Redshift can be configured to return the license after a frame is finished rendering and a number of seconds pass with no render activity. This timeout is configurable using the environment variable
A value of -1 results in the default behavior, where Redshift holds onto the license until the host application is closed. |
REDSHIFT_DISABLELICENSECHECKOUTONINIT
|
Added in version 2.5.51 In order to display license information early, Redshift by default checks out a license at initialization (when the Redshift plugin loads in the host DCC application) and checks it back in immediately. This behavior can be disbaled by defining the environment variable
|
REDSHIFT_DISABLEOUTPUTLOCKFILES
|
When Redshift starts rendering a frame, it writes out a
|
REDSHIFT_PATHOVERRIDE_FILE
|
Added in version 2.5.61 A proxy file can contain references to other proxies, VDBs, textures, etc. If these assets are moved from their original folder locations, the proxy loader will fail to find them and load them. The
So, for example, if the environment variable is set to
... the file
|
REDSHIFT_PATHOVERRIDE_STRING
|
Added in version 2.5.61 This is similar to
Please note that, if both
|
REDSHIFT_ABORTONLICENSEFAIL
|
Added in version 2.5.72 Redshift normally renders with a watermark if it fails to obtain a license. Enabling the render option
Abort on License Failure in the
System tab will cause Redshift to abort the frame instead of rendering with watermarks. Setting the environment variable
|
REDSHIFT_CPUAFFINITY
|
Added in version 2.6.15 Allows the limiting of CPU threads. For example:
will tell the various Redshift systems to use no more than two threads. Please note that some systems might have to use a certain number of threads onwards. Important note: When rendering with multiple GPUs, please ensure to use a value no smaller than the number of GPUs the renderer will use. |
REDSHIFT_FORCEQUITONINTERNALERROR
|
Added in version 2.6.27 When set to any value other than 0, will force a hard crash when an unrecoverable error occurs while rendering |
OCIO
|
Added in version 2.6.39 If a valid path is found it will override the default Display Mode to OCIO and sets the OCIO Config path to this. |
OCIO_ACTIVE_DISPLAYS
|
Added in version 2.6.39 Override to only provide the given displays in the View Transform combo box. |
OCIO_ACTIVE_VIEWS
|
Added in version 2.6.39 Override to only provide the given views in the View Transform combo box. |
REDSHIFT_SNAPSHOT_DIR
|
Added in version 2.6.42 Sets the directory snapshots are saved to. Important note: Specified directories set with Snapshot Configuration > Path take priority. |
REDSHIFT_PRESET_DIR
|
Added in version 2.6.44 Sets the directory to load post effect presets. The directory should contain folders for each post effect to correctly load by user defined defaults. |
REDSHIFT_TEXTUREFILELOCKINGDISABLED
|
Added in version 2.6.48 Disables texture file locking; this can help improve performance on Operating Systems that have slow file locking mechanisms, for when textures have been pre-converted and are not going to be copied to the local cache. |
REDSHIFT_FILESTREAMBUFFERSIZE
|
Added in version 3.0.28 Sets the minimum number of KBytes Redshift will read from a filestream during file access. The default setting is "16" which means Redshift will read a file in chunks of 16KB. Larger values like 64, 256 or even 1024 might help with network file access performance for certain networks. Larger values, though, also mean that Redshift can "overfetch" data which could have an adverse performance effect. We, therefore, recommend using this env variable only if you encounter considerable network file performance issues. |