If set to false
, no automatic binding to requestAnimationFrame
Memory size of quad buffer (in bytes)
If specified, an existing Canvas to be used for rendering by Lightning
If set to true
, the Lightning uses a canvas2d
instead of WebGL for rendering.
See Runtime Config - Limitations of Canvas2D for information about the limitations of using Canvas2D.
Color to clear the Stage with before each frame
Value can be one of 3 types:
number
representing an ARGB color (i.e. 0xfffefdfc
)If specified, an existing WebGL / Canvas2D context to be used
If set to true
, logs debug information about each frame including
how many render-to-texture elements were re-rendered.
Default font family to use for text
See TextTexture.Settings.fontFace for how this value ends up being used.
The special CSS defined font family values of "serif" and "sans-serif" may be used as well.
The Device Pixel Ratio (DPR) affects how touch events are registered and handled on a device, including the conversion of physical pixel coordinates to logical pixel coordinates and the adjustment of element size and layout based on the device's pixel density.
Use fixed time step per frame (in ms)
FontSharp settings
See Runtime Config - FontSharp for more information.
If set to true
, forces the Render Engine to use the canvasSource over getImageData for text
This helps with text generation on certain devices.
See PR #393 for more information about this option.
Height of the rendered Stage
Maximum GPU memory usage in pixels
See Runtime Config - GPU Memory Tweak for more information.
If set to true
, will stop the Render Engine from calling RequestAnimationFrame
when there are no
stage updates.
See Issue #380 for more information about this option.
Set an alternative platform
class type
Global stage scaling
See Runtime Config - Downscaling for more information.
If set to true
, forces the Render Engine to readPixels after drawing, turning the Render pipeline
synchronous.
This option helps with flickering artifacts on certain devices.
Note: This will affect performance!
You may set readPixelsAfterDrawThreshold to control the number of render-to-texture element re-renders that trigger the syncronous pipeline.
See PR #393 for more information about this option.
If readPixelsAfterDraw is set to true
, this is the number of render-to-texture element re-renders
in a frame that will trigger the synchronous Render pipeline.
If set to true
, forces the Render Engine to readPixels before drawing, turning the Render pipeline
synchronous.
Base path used by the ImageTexture
Number of additional pixels to add to the width of every text texture
Use image web workers, if web works are supported on the platform, for fetching and processing images off-thread (web only)
Width of the rendered Stage
Options used to configure the Lightning Stage
Remarks
See the Runtime Configuration for more information.