demos: py_simple: New demo showimage.py.
[gfxprim.git] / doc / environment_variables.txt
blobdec32e71b496551f1108b77e26e5fce8ef6e44fb
1 Environment Variables
2 ---------------------
4 The GFXprim library behavior may be changed by a couple of environment
5 variables:
7 GP_THREADS
8 ~~~~~~~~~~
10 'GP_THREADS' overrides GP_NrThreadsSet() settings. The value is the same as it
11 would have been set by GP_NrThreadsSet() which is described in the table
12 bellow:
14 .GP_THREADS possible values
15 [width="60%",options="header"]
16 |=============================================================================
17 | Value | Description
18 |   0   | Use auto-detection, algorithms runs in nCPU threads unless the image
19           buffer is too small.
20 |   1   | Use one thread only.
21 |  >=2  | Use N threads unless the image buffer is too small.
22 |=============================================================================
24 GP_DEBUG
25 ~~~~~~~~
27 The 'GP_DEBUG' environment variable may be used to set library debug level.
28 The variable and its value is used only once at the time first debug message
29 is about to be printed.