RuntimeConfig
constRuntimeConfig:object
Defined in: defaults.ts:30
Type Declaration
Section titled “Type Declaration”assetFailureCooldown
Section titled “assetFailureCooldown”assetFailureCooldown:
number=5000
assetLoadTimeout
Section titled “assetLoadTimeout”assetLoadTimeout:
number=30000
audioCacheBudget
Section titled “audioCacheBudget”audioCacheBudget:
number
Decoded audio-buffer byte budget — the audio mirror of textureCacheBudget. Released buffers stay as an evictable warm cache (instantly playable, revived without re-fetch + re-decode) and the oldest are dropped past this budget. Read live by AudioAPI, so changes apply without re-init. 0 turns the warm cache off.
canvasMatchWidthOrHeight
Section titled “canvasMatchWidthOrHeight”canvasMatchWidthOrHeight:
number=0.5
canvasScaleMode
Section titled “canvasScaleMode”canvasScaleMode:
number=1
defaultFontFamily
Section titled “defaultFontFamily”defaultFontFamily:
string='Arial'
maxDeltaTime
Section titled “maxDeltaTime”maxDeltaTime:
number=0.25
maxFixedSteps
Section titled “maxFixedSteps”maxFixedSteps:
number=8
sceneTransitionColor
Section titled “sceneTransitionColor”sceneTransitionColor:
object
sceneTransitionColor.a
Section titled “sceneTransitionColor.a”a:
number
sceneTransitionColor.b
Section titled “sceneTransitionColor.b”b:
number
sceneTransitionColor.g
Section titled “sceneTransitionColor.g”g:
number
sceneTransitionColor.r
Section titled “sceneTransitionColor.r”r:
number
sceneTransitionDuration
Section titled “sceneTransitionDuration”sceneTransitionDuration:
number=0.3
textCanvasSize
Section titled “textCanvasSize”textCanvasSize:
number=512
textureCacheBudget
Section titled “textureCacheBudget”textureCacheBudget:
number
Resident GPU-texture byte budget (see setTextureBudget). Released-but- budgeted textures stay resident as an evictable LRU cache, so re-entering a scene (or streaming an area back in) revives them instead of re-fetching + re-decoding. 0 turns the cache off (free at refcount 0).