TBLContextCreateFlag
Rendering context creation flags.
Definition
Unit: Blend2D
type TBLContextCreateFlag = (DisableJit, FallbackToSync, IsolatedThreadPool, IsolatedJitRuntime, IsolatedJitLogging, OverrideCpuFeatures)
Enumeration Values
DisableJit = 0
Disables JIT pipeline generator.
FallbackToSync = 20
Fallbacks to a synchronous rendering in case that the rendering engine wasn't able to acquire threads. This flag only makes sense when the asynchronous mode was specified by having ThreadCount
greater than 0. If the rendering context fails to acquire at least one thread it would fallback to synchronous mode with no worker threads.
IsolatedThreadPool = 24
If this flag is specified and asynchronous rendering is enabled then the context would create its own isolated thread-pool, which is useful for debugging purposes.
Do not use this flag in production as rendering contexts with isolated thread-pool have to create and destroy all threads they use. This flag is only useful for testing, debugging, and isolated benchmarking.
IsolatedJitRuntime = 25
If this flag is specified and JIT pipeline generation enabled then the rendering context would create its own isolated JIT runtime. which is useful for debugging purposes. This flag will be ignored if JIT pipeline compilation is either not supported or was disabled by other flags.
Do not use this flag in production as rendering contexts with isolated JIT runtime do not use global pipeline cache, that's it, after the rendering context is destroyed the JIT runtime is destroyed with it with all compiled pipelines. This flag is only useful for testing, debugging, and isolated benchmarking.
IsolatedJitLogging = 26
Enables logging to stderr of isolated runtime.
OverrideCpuFeatures = 27
Override CPU features when creating isolated context.