RuntimeConfig
此内容尚不支持你的语言。
constRuntimeConfig:object
Defined in: defaults.ts:29
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.
defaultFontFamily
Section titled “defaultFontFamily”defaultFontFamily:
string=DEFAULT_FONT_FAMILY
The family a Text with no fontFamily of its own rasterizes with.
maxDeltaTime
Section titled “maxDeltaTime”maxDeltaTime:
number=0.25
maxFixedSteps
Section titled “maxFixedSteps”maxFixedSteps:
number=8
retainedBudget
Section titled “retainedBudget”retainedBudget:
number
How many bytes of CPU copies the graphics device may keep to survive a GPU loss before it warns (see setRetainedBudget). The engine keeps about 28 KiB of its own; this is one 2048×2048 image. 0 never warns.
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).