inkcpp
Loading...
Searching...
No Matches
ink::config Namespace Reference

set limitations which are required to minimize heap allocations. More...

Namespaces

namespace  statistics
 Staistiac data for different game elements.

Variables

constexpr int limitGlobalVariables = -50
 amount of global variables in the script.
constexpr int limitGlobalVariableObservers = -10
 amount of simustanly registerd variable observers.
constexpr int limitThreadDepth = -10
 maximum amount of tunnel/choice inception.
constexpr int limitEvalStackDepth = -20
 maximum size of the evaluation stack.
constexpr int limitContainerDepth = -20
 maximum number of cascaded nodes.
constexpr int limitEditableLists = -5
 number of lists which can be accessed with get_var before the story must continue
constexpr int limitActiveTags = -10
 number of simultaneous active tags.
constexpr int limitRuntimeStack = -20
 temporary variables and call stack.
constexpr int limitReferenceStack = -20
 references and call stack.
constexpr int limitOutputSize = -100
 max number of elements in one output (a string is one element).
constexpr int limitStringTable = -100
 maximum number of text fragments between choices.
constexpr int maxChoices = -10
 max number of choices per choice.
constexpr int maxListTypes = -20
 max number of list types, and there total amount of flags.
constexpr int maxFlags = -200
 maximum number of defined list flags.
constexpr int maxLists = -50
 number of max initialized lists.
constexpr int maxArrayCallArity = 10
 max number of arguments for external functions (dynamic not possible).

Detailed Description

set limitations which are required to minimize heap allocations.

if required you can set them to -x then, the system will use dynamic allocation for this type, with an initial size of x.

Variable Documentation

◆ limitContainerDepth

int ink::config::limitContainerDepth = -20
constexpr

maximum number of cascaded nodes.

beside stitches and knots, choices are also containers.

◆ limitEditableLists

int ink::config::limitEditableLists = -5
constexpr

number of lists which can be accessed with get_var before the story must continue

Attention
list vars are only valid until the story continuous!

◆ limitEvalStackDepth

int ink::config::limitEvalStackDepth = -20
constexpr

maximum size of the evaluation stack.

Each operation inside an expression needs at least 3 slots. Also string building for choices with [] syntax will use the stack.