Skip to content
On this page

Environment variables

During the installation of Simplygon (either by using the installer or when performing a manual advanced installation), there are environment variables that are required to be set up on the computer for Simplygon to work properly and/or to customize where Simplygon stores and retrieves files from. These environment variables are explained in detail below.

IMPORTANT NOTE

Remember to restart any programs (including their parent processes) using Simplygon if changing any of the environment variables, since such changes are not picked up by already running processes.

Variable nameVariable contentsDefault valueDescription
SIMPLYGON_10_PATHAbsolute path%PROGRAMW6432%\Simplygon\10Set SIMPLYGON_10_PATH to a path where all the binaries that make Simplygon run (like Simplygon.dll and SimplygonBatch.exe etc.) are located.
SIMPLYGON_10_TEMPAbsolute path%LOCALAPPDATA%\Temp\SimplygonSIMPLYGON_10_TEMP should be set to a path that can be used by Simplygon to store temporary intermediate files during processings.
SIMPLYGON_10_SHAREDAbsolute path%USERPROFILE%\Documents\Simplygon\10Simplygon will look for shared resources (like saved pipelines) in the directory that SIMPLYGON_10_SHARED is set to.
SIMPLYGON_10_LICENSE_PATHAbsolute folderSimplygon will look for a Simplygon_10_license.lic license file in this folder if set.
SIMPLYGON_10_FLAGSFeature flagsFeature flags controlling behavior of Simplygon without invoking the API directly. Semi-colon separated list of flag strings.
SIMPLYGON_10_GRID_HOSTSGrid hostsSemi-colon separated list of IP address or host names of machines running Grid agents that will act as bridges between subnets which will normally not be found during agent discovery (mDNS).
SIMPLYGON_10_GRID_IFINDEXInterface indexInteger value specifying which network interface the Grid agent should use. Please use Get-NetIPInterface to get available interface indices. If not set the Grid agent will automatically detect and use a suitable network interface.

Feature flags

  • NoLicenseFallback: Allow the API to starting up in unlicensed mode as a silent fallback if there is no valid license file on the machine. Normally this would generate an error indicating an invalid license.
  • MemoryTracker: Track all memory allocations and report any memory leaks on DLL unload (printed to stderr and debugger output window). This can have a major negative impact on performance, only enable if memory leaks are suspected. To get the report redirected to a file instead of stderr, add an assignment with a file path to the flag (for example MemoryTracker=D:/memory.log).
  • MemoryGuard: Place guard zones around all allocations to detect out-of-bounds writes. This can have a major negative impact on performance, only enable if memory errors are suspected. To also detect post-free reads/writes of memory blocks, add an assignment with a level indication set to 2 (MemoryGuard=2). This will map new memory pages for each allocation and cause access violations if the block is read/written after deallocation.
  • UseRpmalloc: The API will use rpmalloc for all memory allocations. Simplygon will run ~5% faster but with a significantly larger memory footprint.