@moku-labs/game 0.15.160 → 0.15.162

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/app/page.d.mts +1 -1
  2. package/dist/app/page.mjs +1 -1
  3. package/dist/app/system.d.mts +3 -3
  4. package/dist/app.d.mts +3 -3
  5. package/dist/app.mjs +1 -1
  6. package/dist/assets.d.mts +1 -1
  7. package/dist/{commands-CLhKYlot.d.mts → commands-Gi8RMNnU.d.mts} +5 -5
  8. package/dist/control.d.mts +4 -4
  9. package/dist/{define-3zxu6rIq.d.mts → define-DSOTwTUY.d.mts} +2 -2
  10. package/dist/{headless-DFkrIVO4.d.mts → headless-PANjNy6-.d.mts} +1 -1
  11. package/dist/{index-CVmEBBm5.d.mts → index-CbMDaUan.d.mts} +3 -3
  12. package/dist/index.d.mts +4 -4
  13. package/dist/index.mjs +1 -1
  14. package/dist/inspect.d.mts +6 -6
  15. package/dist/inspect.mjs +1 -1
  16. package/dist/jsx-dev-runtime.d.mts +1 -1
  17. package/dist/jsx-runtime.d.mts +1 -1
  18. package/dist/{runtime-CI8p6sVn.d.mts → runtime-CkJJvWKb.d.mts} +1 -1
  19. package/dist/{sources-D9Fk3Z4d.mjs → sources-DRP-bS6e.mjs} +2 -1
  20. package/dist/{src-qeTzNTZA.mjs → src-mZkN8URR.mjs} +173 -47
  21. package/dist/testing.d.mts +4 -4
  22. package/dist/testing.mjs +1 -1
  23. package/dist/{types-CM7Ng3EN.d.mts → types-BuN6rLDs.d.mts} +2 -2
  24. package/dist/{types-Bl9jyah_.d.mts → types-CPiWOiSc.d.mts} +1 -1
  25. package/dist/{types-D-vnlN3n.d.mts → types-D8D2ZtEi.d.mts} +2 -2
  26. package/dist/{types-D1xdKk_t.d.mts → types-DTkhpupa.d.mts} +91 -22
  27. package/dist/{types-DHWjH6p9.d.mts → types-DkQbqqw0.d.mts} +4 -4
  28. package/dist/{visual-D_4mmn1u.d.mts → visual-nAxiy1aK.d.mts} +6 -6
  29. package/dist/visual.d.mts +1 -1
  30. package/dist/visual.mjs +1 -1
  31. package/llms.txt +1 -1
  32. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-DHWjH6p9.mjs";
1
+ import { h as StartedPage, r as GameConfig, t as AnyGameApp, u as PageOptions } from "../types-DkQbqqw0.mjs";
2
2
 
3
3
  //#region src/app/page.d.ts
4
4
  /**
package/dist/app/page.mjs CHANGED
@@ -2,7 +2,7 @@ import { i as systemSource, t as memory } from "../memory-DeD9wis6.mjs";
2
2
  import { t as applyTo } from "../drafts-BawpSaVp.mjs";
3
3
  import { i as isControl } from "../dev-BNndV-hU.mjs";
4
4
  import { n as fakeClock, t as VISUAL_CLOCK } from "../fake-hnJcJeYf.mjs";
5
- import { n as read, r as watch, t as sources } from "../sources-D9Fk3Z4d.mjs";
5
+ import { n as read, r as watch, t as sources } from "../sources-DRP-bS6e.mjs";
6
6
  import { n as resolveConfig } from "../config-DVqciSkP.mjs";
7
7
  //#region src/app/boot.ts
8
8
  /** How long after the fade the timer removes a picture whose transition never ended, ms. */
@@ -1,6 +1,6 @@
1
- import { Yr as PlayerStateProvider } from "../types-D1xdKk_t.mjs";
2
- import { jt as PlatformProvider } from "../index-CVmEBBm5.mjs";
3
- import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-DHWjH6p9.mjs";
1
+ import { Yr as PlayerStateProvider } from "../types-DTkhpupa.mjs";
2
+ import { jt as PlatformProvider } from "../index-CbMDaUan.mjs";
3
+ import { _ as SystemName, g as SystemModules, v as SystemShellFactory } from "../types-DkQbqqw0.mjs";
4
4
  import { Back, Haptics, KeepAwake, Lifecycle, Store } from "@moku-labs/system";
5
5
 
6
6
  //#region src/app/system.d.ts
package/dist/app.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { Wr as Json } from "./types-D1xdKk_t.mjs";
2
- import { J as StringTable } from "./types-Bl9jyah_.mjs";
3
- import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-DHWjH6p9.mjs";
1
+ import { Wr as Json } from "./types-DTkhpupa.mjs";
2
+ import { J as StringTable } from "./types-CPiWOiSc.mjs";
3
+ import { _ as SystemName, a as GameHandle, c as MemoryProvider, d as PlistValue, f as SaveKind, i as GameDefinition, l as PageAgent, m as ScreenSeams, n as GameApp, o as GamePluginConfigs, p as Scenario, r as GameConfig, s as HeadlessSeams, y as WithGameState } from "./types-DkQbqqw0.mjs";
4
4
  import { AnyPluginInstance } from "@moku-labs/core";
5
5
 
6
6
  //#region src/app/define.d.ts
package/dist/app.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { Xt as audioPlugin, i as screen, k as flattenFeatures, rt as platformPlugin, t as createApp, zt as effectsPlugin } from "./src-qeTzNTZA.mjs";
1
+ import { Xt as audioPlugin, i as screen, k as flattenFeatures, rt as platformPlugin, t as createApp, zt as effectsPlugin } from "./src-mZkN8URR.mjs";
2
2
  import { t as memory } from "./memory-DeD9wis6.mjs";
3
3
  import { n as fakeClock, r as isFakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  //#region src/app/define.ts
package/dist/assets.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { d as Manifest } from "./types-D1xdKk_t.mjs";
1
+ import { d as Manifest } from "./types-DTkhpupa.mjs";
2
2
 
3
3
  //#region src/plugins/assets/scan/cli.d.ts
4
4
  /**
@@ -1,8 +1,8 @@
1
- import { $r as Snapshot, Ar as Api$4, Fn as Bookmark, Fr as Api$1, O as DebugSwitches, Q as Api$3, Rn as FlowState, fi as FrameRate, gi as Time, ii as Api$2, mt as Captured, t as Api, ti as StoreApi, w as ScenesApi } from "./types-D1xdKk_t.mjs";
2
- import { Y as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-D-vnlN3n.mjs";
3
- import { R as InputApi } from "./types-Bl9jyah_.mjs";
4
- import { t as HeadlessApp } from "./headless-DFkrIVO4.mjs";
5
- import { i as ControlApp, r as Command } from "./types-CM7Ng3EN.mjs";
1
+ import { $r as Snapshot, Ar as Api$4, Fn as Bookmark, Fr as Api$1, O as DebugSwitches, Q as Api$3, Rn as FlowState, fi as FrameRate, gi as Time, ii as Api$2, mt as Captured, t as Api, ti as StoreApi, w as ScenesApi } from "./types-DTkhpupa.mjs";
2
+ import { Y as AnimApi, a as AudioApi, h as EffectsApi, r as UiApi } from "./types-D8D2ZtEi.mjs";
3
+ import { R as InputApi } from "./types-CPiWOiSc.mjs";
4
+ import { t as HeadlessApp } from "./headless-PANjNy6-.mjs";
5
+ import { i as ControlApp, r as Command } from "./types-BuN6rLDs.mjs";
6
6
 
7
7
  //#region src/plugins/flow/doors/commands.d.ts
8
8
  /**
@@ -1,7 +1,7 @@
1
- import { t as HeadlessApp } from "./headless-DFkrIVO4.mjs";
2
- import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-CM7Ng3EN.mjs";
3
- import { t as commands } from "./commands-CLhKYlot.mjs";
4
- import { t as defineCommand } from "./define-3zxu6rIq.mjs";
1
+ import { t as HeadlessApp } from "./headless-PANjNy6-.mjs";
2
+ import { a as InputArguments, c as Ran, n as ChoiceInput, r as Command, s as InputSchema, u as ToggleInput } from "./types-BuN6rLDs.mjs";
3
+ import { t as commands } from "./commands-Gi8RMNnU.mjs";
4
+ import { t as defineCommand } from "./define-DSOTwTUY.mjs";
5
5
 
6
6
  //#region src/plugins/flow/doors/dev.d.ts
7
7
  /**
@@ -1,5 +1,5 @@
1
- import { t as HeadlessApp } from "./headless-DFkrIVO4.mjs";
2
- import { l as Source, r as Command, s as InputSchema } from "./types-CM7Ng3EN.mjs";
1
+ import { t as HeadlessApp } from "./headless-PANjNy6-.mjs";
2
+ import { l as Source, r as Command, s as InputSchema } from "./types-BuN6rLDs.mjs";
3
3
 
4
4
  //#region src/plugins/flow/doors/define.d.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { Rn as FlowState, Vn as RouteStep, Wr as Json, Xn as Answer, mn as Api$1, ri as RngState, ui as Api, zn as JournalEntry } from "./types-D1xdKk_t.mjs";
1
+ import { Rn as FlowState, Vn as RouteStep, Wr as Json, Xn as Answer, mn as Api$1, ri as RngState, ui as Api, zn as JournalEntry } from "./types-DTkhpupa.mjs";
2
2
 
3
3
  //#region src/plugins/flow/headless.d.ts
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { $ as Config$6, Ar as Api$6, B as OverlayValue, C as SceneSpec, Cn as TextStylesOf, Cr as Mut, Dr as SystemDefinition, Dt as FrameRing, En as defineFlow, Er as ResourceType, Et as FrameRecord, Fr as Api$1, Gn as Effect, Gr as Root, Hn as SceneIdOf, Hr as Config$5, I as HudPartValue, In as DefineNode, Jn as Hint, Jr as Patch, K as SpriteOptions, Kn as EffectOptions, Kr as State$5, Lr as Config$2, Lt as PassKind, Mn as FeaturePlugin, Nn as FeatureTree, Nr as State$9, Or as SystemFor, Q as Api$4, R as NineSliceValue, S as SceneDefinition, Sn as TextFormatsOf, T as State$7, Tr as QueryTerm, U as ShapeValue, Wn as Descriptor, Wr as Json, X as sprite, Y as TransformValue, Zn as Answered, _ as AnySceneProjection, _n as EmitterIdOf, a as Config$1, ai as Config$4, ar as NumericFields, bi as Require, c as LoadBundles, ci as State$4, cr as ReducedMotion, di as Config$8, er as DescriptionNode, f as ReadyBundles, gn as Config$3, gr as ComponentHandle, hi as ThermalReading, hn as BundlesOf, i as BundleSpec, ii as Api$3, jn as FeatureDescription, jr as Config$9, kr as TagType, l as LoadReason, lt as State$6, m as Tier, mi as State$8, mn as Api$2, ni as RngApi, o as DefineBundles, oi as Events, or as ProjectionMotion, p as State$1, pi as RateChange, q as SpriteValue, qn as GuideOptions, r as BundleMap, si as PauseReason, sr as ProjectionSpec, t as Api, ti as StoreApi, tr as Ease, u as LoadResult, ui as Api$5, v as Config$7, vi as Config$10, vn as GameTypes, vr as ComponentType, w as ScenesApi, wr as Narrowed, x as LayerMap, xn as State$3, y as DefineScene, yi as Events$1, yn as HudKeysOf, yr as ComponentValue, yt as ViewportSize, zr as State$2 } from "./types-D1xdKk_t.mjs";
2
- import { $ as MotionKeyframe, A as ShadowValue, B as DisplacementValue, C as FoldValue, D as PixelateValue, E as MirrorValue, F as EmitterDefinition, G as GlowValue, H as FilterComponent, I as EmitterValue, J as UniformDeclaration, K as NoiseValue, L as AlphaValue, M as VignetteValue, N as WaveValue, O as RevealLineValue, P as EmitterConfig, Q as FramesValue, R as BlurValue, S as FlashValue, T as GradientMapValue, Tt as OverlayApi, U as FilterSpec, W as FilterValueOf, X as AnimPlayerValue, Y as AnimApi, Z as Config$11, _ as State$12, a as AudioApi, at as SfxDescriptor, b as BloomValue, c as MusicDescriptor, ct as defineAnimation, d as State$11, et as State$10, f as VolumesFor, h as EffectsApi, it as HapticKind, j as ShineValue, k as RevealRoundValue, l as MusicOptions, m as Config$13, mt as play, n as State$13, ot as Step, q as OutlineValue, r as UiApi, s as Config$12, t as Config$14, tt as Target, w as GradeValue, x as DissolveValue, y as AuraValue, z as ColorMatrixValue } from "./types-D-vnlN3n.mjs";
3
- import { $ as ResolvedStyle, A as TextFormats, C as Point, E as TextBind, G as Message, H as Config$15, I as defineComponent, K as Part, L as Config$16, M as TextStyleInput, N as TextStyles, P as TextValue, Q as IsFlags, R as InputApi, T as TextApi, U as I18nApi, V as Argument, W as IntlKit, X as TypedTr, Y as TextKey, b as Config$17, et as Style, g as IntrinsicElementsFor, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, nt as TextTagStyle, q as State$14, rt as WhenFlags, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-Bl9jyah_.mjs";
1
+ import { $ as Config$6, Ar as Api$6, B as OverlayValue, C as SceneSpec, Cn as TextStylesOf, Cr as Mut, Dr as SystemDefinition, Dt as FrameRing, En as defineFlow, Er as ResourceType, Et as FrameRecord, Fr as Api$1, Gn as Effect, Gr as Root, Hn as SceneIdOf, Hr as Config$5, I as HudPartValue, In as DefineNode, Jn as Hint, Jr as Patch, K as SpriteOptions, Kn as EffectOptions, Kr as State$5, Lr as Config$2, Lt as PassKind, Mn as FeaturePlugin, Nn as FeatureTree, Nr as State$9, Or as SystemFor, Q as Api$4, R as NineSliceValue, S as SceneDefinition, Sn as TextFormatsOf, T as State$7, Tr as QueryTerm, U as ShapeValue, Wn as Descriptor, Wr as Json, X as sprite, Y as TransformValue, Zn as Answered, _ as AnySceneProjection, _n as EmitterIdOf, a as Config$1, ai as Config$4, ar as NumericFields, bi as Require, c as LoadBundles, ci as State$4, cr as ReducedMotion, di as Config$8, er as DescriptionNode, f as ReadyBundles, gn as Config$3, gr as ComponentHandle, hi as ThermalReading, hn as BundlesOf, i as BundleSpec, ii as Api$3, jn as FeatureDescription, jr as Config$9, kr as TagType, l as LoadReason, lt as State$6, m as Tier, mi as State$8, mn as Api$2, ni as RngApi, o as DefineBundles, oi as Events, or as ProjectionMotion, p as State$1, pi as RateChange, q as SpriteValue, qn as GuideOptions, r as BundleMap, si as PauseReason, sr as ProjectionSpec, t as Api, ti as StoreApi, tr as Ease, u as LoadResult, ui as Api$5, v as Config$7, vi as Config$10, vn as GameTypes, vr as ComponentType, w as ScenesApi, wr as Narrowed, x as LayerMap, xn as State$3, y as DefineScene, yi as Events$1, yn as HudKeysOf, yr as ComponentValue, yt as ViewportSize, zr as State$2 } from "./types-DTkhpupa.mjs";
2
+ import { $ as MotionKeyframe, A as ShadowValue, B as DisplacementValue, C as FoldValue, D as PixelateValue, E as MirrorValue, F as EmitterDefinition, G as GlowValue, H as FilterComponent, I as EmitterValue, J as UniformDeclaration, K as NoiseValue, L as AlphaValue, M as VignetteValue, N as WaveValue, O as RevealLineValue, P as EmitterConfig, Q as FramesValue, R as BlurValue, S as FlashValue, T as GradientMapValue, Tt as OverlayApi, U as FilterSpec, W as FilterValueOf, X as AnimPlayerValue, Y as AnimApi, Z as Config$11, _ as State$12, a as AudioApi, at as SfxDescriptor, b as BloomValue, c as MusicDescriptor, ct as defineAnimation, d as State$11, et as State$10, f as VolumesFor, h as EffectsApi, it as HapticKind, j as ShineValue, k as RevealRoundValue, l as MusicOptions, m as Config$13, mt as play, n as State$13, ot as Step, q as OutlineValue, r as UiApi, s as Config$12, t as Config$14, tt as Target, w as GradeValue, x as DissolveValue, y as AuraValue, z as ColorMatrixValue } from "./types-D8D2ZtEi.mjs";
3
+ import { $ as ResolvedStyle, A as TextFormats, C as Point, E as TextBind, G as Message, H as Config$15, I as defineComponent, K as Part, L as Config$16, M as TextStyleInput, N as TextStyles, P as TextValue, Q as IsFlags, R as InputApi, T as TextApi, U as I18nApi, V as Argument, W as IntlKit, X as TypedTr, Y as TextKey, b as Config$17, et as Style, g as IntrinsicElementsFor, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, nt as TextTagStyle, q as State$14, rt as WhenFlags, s as PopupComponent, v as BindField, w as State$16, x as CountdownValue, y as BindOptions, z as State$15 } from "./types-CPiWOiSc.mjs";
4
4
  import { Log } from "@moku-labs/common/browser";
5
5
  import { PluginCtx } from "@moku-labs/core";
6
6
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { $t as PerfSampleLine, An as type, At as MonitorSections, B as OverlayValue, Br as types_d_exports$3, Bt as PerfChange, Ct as FrameColumns, Dn as exit, Dt as FrameRing, E as types_d_exports$13, Et as FrameRecord, F as HudPart, Ft as PERF_LOG_VERSION, G as SpriteBlend, Gt as PerfEventLine, H as Shape, Ht as PerfCollectorLine, I as HudPartValue, It as PROBLEM_RULES, J as Transform, Jt as PerfHeaderLine, Kt as PerfEventName, L as NineSlice, Lt as PassKind, Mt as OverlayWhat, N as WhyEntry, Nt as PERF_CAUSES, On as slot, Ot as LongFrameEntry, P as Display, Pr as types_d_exports$17, Pt as PERF_GAP_BUCKETS, Qn as AnchorTarget, Qr as SaveUnreadableError, Qt as PerfMeasured, Rt as PassRecord, St as WhyLive, Tn as contribution, Tt as FrameReadout, Ut as PerfCounts, V as Parent, Vt as PerfChangeEntry, W as Sprite, Wt as PerfDisplay, X as sprite, Xt as PerfLongFrameLine, Yt as PerfLogLine, Z as AdaptiveScale, Zt as PerfMarkLine, _i as types_d_exports$15, an as ProblemEventDetail, cn as ShaderEventDetail, ct as PoolTrim, dn as CANVAS_RESTARTS, dt as types_d_exports$12, en as PerfSpikeLine, er as DescriptionNode, et as MonitorConfig, fn as CanvasRestart, ft as ShotsApi, g as types_d_exports$1, ht as MonitorCounts, in as PoolTrimDetail, jt as OverlayEventDetail, kn as to, kt as MONITOR_SECTIONS, li as types_d_exports$9, ln as ShaderWhat, lr as SceneSwitch, nn as PerfTelemetryLine, on as ProblemRule, pn as DEMAND_REASONS, pt as ShotsConfig, qr as types_d_exports$10, qt as PerfGapLine, rn as PerfThermalLine, sn as SHADER_WHATS, tn as PerfStartupLine, un as WarmDetail, wn as types_d_exports$6, wt as FrameReadResult, xt as RetakeWhy, z as Overlay, zt as PerfCause } from "./types-D1xdKk_t.mjs";
2
- import { A as ShadowValue, C as FoldValue, Ct as use, D as PixelateValue, E as MirrorValue, Et as types_d_exports$4, M as VignetteValue, N as WaveValue, O as RevealLineValue, S as FlashValue, St as tween, T as GradientMapValue, V as FilterArea, _t as sfx, b as BloomValue, bt as stagger, ct as defineAnimation, dt as haptic, ft as mark, gt as set, ht as sequence, i as types_d_exports$16, it as HapticKind, j as ShineValue, k as RevealRoundValue, lt as external, mt as play, p as types_d_exports$2, pt as parallel, rt as types_d_exports, st as HAPTIC_KINDS, ut as frames, v as types_d_exports$5, vt as spawn, w as GradeValue, wt as wait, x as DissolveValue, xt as stopSfx, y as AuraValue, yt as spawned } from "./types-D-vnlN3n.mjs";
3
- import { A as TextFormats, B as types_d_exports$8, D as TextFormat, F as types_d_exports$14, I as defineComponent, O as TextFormatAnswer, S as FormattedNumber, Z as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, m as popup, nt as TextTagStyle, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-Bl9jyah_.mjs";
4
- import { $ as Swipeable, A as music, At as BackResult, B as Frames, Bt as clockPlugin, C as Alpha, Ct as worldPlugin, D as Glow, Dt as scenesPlugin, E as Displacement, Et as textPlugin, F as messageDuration, Ft as inputPlugin, G as Draggable, Gt as Countdown, H as defineBundles, Ht as assetsPlugin, I as cubicBezier, It as i18nPlugin, J as Hovered, Jt as defineTextFormats, K as DropTarget, Kt as Text, L as defineMotion, Lt as flowPlugin, M as defineStyle, Mt as types_d_exports$11, N as tr, Nt as modelPlugin, O as Noise, Ot as rendererPlugin, P as messageArgument, Pt as lifecyclePlugin, Q as Pressed, R as AnimPlayer, Rt as effectsPlugin, S as defineFilter, St as flattenFeatures, T as ColorMatrix, Tt as timePlugin, U as load, Ut as animPlugin, V as defineScene, Vt as audioPlugin, W as ready, Wt as projection, X as PointerOver, Xt as label, Y as Pointer, Yt as defineTextStyles, Z as Pressable, _ as Fold, _t as defineEffect, a as defineEmitter, at as PASS_KINDS, b as Bloom, bt as schedule, c as Vignette, ct as Layer, d as RevealRound, dt as Tree, et as TapValue, f as RevealLine, ft as component, g as Grade, gt as tag, h as GradientMap, ht as system, i as screen, it as Traced, j as resolve, jt as PlatformProvider, k as Outline, kt as platformPlugin, l as Shine, lt as Now, m as Mirror, mt as resource, n as createPlugin, nt as Touchable, o as Emitter, ot as frameAt, p as Pixelate, pt as mut, q as Held, qt as bind, r as defineGame, rt as Traceable, s as Wave, st as Exiting, t as createApp, tt as Tappable, u as Shadow, ut as Order, v as Flash, vt as guide, w as Blur, wt as uiPlugin, x as Aura, xt as defineFeature, y as Dissolve, yt as hint, z as Animation, zt as debugPlugin } from "./index-CVmEBBm5.mjs";
1
+ import { $t as PerfSampleLine, An as type, At as MonitorSections, B as OverlayValue, Br as types_d_exports$3, Bt as PerfChange, Ct as FrameColumns, Dn as exit, Dt as FrameRing, E as types_d_exports$13, Et as FrameRecord, F as HudPart, Ft as PERF_LOG_VERSION, G as SpriteBlend, Gt as PerfEventLine, H as Shape, Ht as PerfCollectorLine, I as HudPartValue, It as PROBLEM_RULES, J as Transform, Jt as PerfHeaderLine, Kt as PerfEventName, L as NineSlice, Lt as PassKind, Mt as OverlayWhat, N as WhyEntry, Nt as PERF_CAUSES, On as slot, Ot as LongFrameEntry, P as Display, Pr as types_d_exports$17, Pt as PERF_GAP_BUCKETS, Qn as AnchorTarget, Qr as SaveUnreadableError, Qt as PerfMeasured, Rt as PassRecord, St as WhyLive, Tn as contribution, Tt as FrameReadout, Ut as PerfCounts, V as Parent, Vt as PerfChangeEntry, W as Sprite, Wt as PerfDisplay, X as sprite, Xt as PerfLongFrameLine, Yt as PerfLogLine, Z as AdaptiveScale, Zt as PerfMarkLine, _i as types_d_exports$15, an as ProblemEventDetail, cn as ShaderEventDetail, ct as PoolTrim, dn as CANVAS_RESTARTS, dt as types_d_exports$12, en as PerfSpikeLine, er as DescriptionNode, et as MonitorConfig, fn as CanvasRestart, ft as ShotsApi, g as types_d_exports$1, ht as MonitorCounts, in as PoolTrimDetail, jt as OverlayEventDetail, kn as to, kt as MONITOR_SECTIONS, li as types_d_exports$9, ln as ShaderWhat, lr as SceneSwitch, nn as PerfTelemetryLine, on as ProblemRule, pn as DEMAND_REASONS, pt as ShotsConfig, qr as types_d_exports$10, qt as PerfGapLine, rn as PerfThermalLine, sn as SHADER_WHATS, tn as PerfStartupLine, un as WarmDetail, wn as types_d_exports$6, wt as FrameReadResult, xt as RetakeWhy, z as Overlay, zt as PerfCause } from "./types-DTkhpupa.mjs";
2
+ import { A as ShadowValue, C as FoldValue, Ct as use, D as PixelateValue, E as MirrorValue, Et as types_d_exports$4, M as VignetteValue, N as WaveValue, O as RevealLineValue, S as FlashValue, St as tween, T as GradientMapValue, V as FilterArea, _t as sfx, b as BloomValue, bt as stagger, ct as defineAnimation, dt as haptic, ft as mark, gt as set, ht as sequence, i as types_d_exports$16, it as HapticKind, j as ShineValue, k as RevealRoundValue, lt as external, mt as play, p as types_d_exports$2, pt as parallel, rt as types_d_exports, st as HAPTIC_KINDS, ut as frames, v as types_d_exports$5, vt as spawn, w as GradeValue, wt as wait, x as DissolveValue, xt as stopSfx, y as AuraValue, yt as spawned } from "./types-D8D2ZtEi.mjs";
3
+ import { A as TextFormats, B as types_d_exports$8, D as TextFormat, F as types_d_exports$14, I as defineComponent, O as TextFormatAnswer, S as FormattedNumber, Z as types_d_exports$7, d as DebugTrigger, f as LocalWrite, h as defineTokens, j as TextRunStyle, k as TextFormatFunction, m as popup, nt as TextTagStyle, p as ScrollState, u as Box, x as CountdownValue, y as BindOptions } from "./types-CPiWOiSc.mjs";
4
+ import { $ as Swipeable, A as music, At as BackResult, B as Frames, Bt as clockPlugin, C as Alpha, Ct as worldPlugin, D as Glow, Dt as scenesPlugin, E as Displacement, Et as textPlugin, F as messageDuration, Ft as inputPlugin, G as Draggable, Gt as Countdown, H as defineBundles, Ht as assetsPlugin, I as cubicBezier, It as i18nPlugin, J as Hovered, Jt as defineTextFormats, K as DropTarget, Kt as Text, L as defineMotion, Lt as flowPlugin, M as defineStyle, Mt as types_d_exports$11, N as tr, Nt as modelPlugin, O as Noise, Ot as rendererPlugin, P as messageArgument, Pt as lifecyclePlugin, Q as Pressed, R as AnimPlayer, Rt as effectsPlugin, S as defineFilter, St as flattenFeatures, T as ColorMatrix, Tt as timePlugin, U as load, Ut as animPlugin, V as defineScene, Vt as audioPlugin, W as ready, Wt as projection, X as PointerOver, Xt as label, Y as Pointer, Yt as defineTextStyles, Z as Pressable, _ as Fold, _t as defineEffect, a as defineEmitter, at as PASS_KINDS, b as Bloom, bt as schedule, c as Vignette, ct as Layer, d as RevealRound, dt as Tree, et as TapValue, f as RevealLine, ft as component, g as Grade, gt as tag, h as GradientMap, ht as system, i as screen, it as Traced, j as resolve, jt as PlatformProvider, k as Outline, kt as platformPlugin, l as Shine, lt as Now, m as Mirror, mt as resource, n as createPlugin, nt as Touchable, o as Emitter, ot as frameAt, p as Pixelate, pt as mut, q as Held, qt as bind, r as defineGame, rt as Traceable, s as Wave, st as Exiting, t as createApp, tt as Tappable, u as Shadow, ut as Order, v as Flash, vt as guide, w as Blur, wt as uiPlugin, x as Aura, xt as defineFeature, y as Dissolve, yt as hint, z as Animation, zt as debugPlugin } from "./index-CbMDaUan.mjs";
5
5
  export { type AdaptiveScale, Alpha, type AnchorTarget, types_d_exports as Anim, AnimPlayer, Animation, types_d_exports$1 as Assets, types_d_exports$2 as Audio, Aura, type AuraValue, type BackResult, type BindOptions, Bloom, type BloomValue, Blur, Box, CANVAS_RESTARTS, type CanvasRestart, types_d_exports$3 as Clock, ColorMatrix, Countdown, type CountdownValue, DEMAND_REASONS, types_d_exports$4 as Debug, DebugTrigger, type DescriptionNode, Displacement, Display, Dissolve, type DissolveValue, Draggable, DropTarget, types_d_exports$5 as Effects, Emitter, Exiting, type FilterArea, Flash, type FlashValue, types_d_exports$6 as Flow, Fold, type FoldValue, type FormattedNumber, type FrameColumns, type FrameReadResult, type FrameReadout, type FrameRecord, type FrameRing, Frames, Glow, Grade, type GradeValue, GradientMap, type GradientMapValue, HAPTIC_KINDS, type HapticKind, Held, Hovered, HudPart, type HudPartValue, types_d_exports$7 as I18n, types_d_exports$8 as Input, Layer, types_d_exports$9 as Lifecycle, LocalWrite, type LongFrameEntry, MONITOR_SECTIONS, Mirror, type MirrorValue, types_d_exports$10 as Model, type MonitorConfig, type MonitorCounts, type MonitorSections, NineSlice, Noise, Now, Order, Outline, Overlay, type OverlayEventDetail, type OverlayValue, type OverlayWhat, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, type PassKind, type PassRecord, type PerfCause, type PerfChange, type PerfChangeEntry, type PerfCollectorLine, type PerfCounts, type PerfDisplay, type PerfEventLine, type PerfEventName, type PerfGapLine, type PerfHeaderLine, type PerfLogLine, type PerfLongFrameLine, type PerfMarkLine, type PerfMeasured, type PerfSampleLine, type PerfSpikeLine, type PerfStartupLine, type PerfTelemetryLine, type PerfThermalLine, Pixelate, type PixelateValue, types_d_exports$11 as Platform, type PlatformProvider, Pointer, PointerOver, type PoolTrim, type PoolTrimDetail, Pressable, Pressed, type ProblemEventDetail, type ProblemRule, types_d_exports$12 as Renderer, type RetakeWhy, RevealLine, type RevealLineValue, RevealRound, type RevealRoundValue, SHADER_WHATS, SaveUnreadableError, type SceneSwitch, types_d_exports$13 as Scenes, ScrollState, type ShaderEventDetail, type ShaderWhat, Shadow, type ShadowValue, Shape, Shine, type ShineValue, type ShotsApi, type ShotsConfig, Sprite, type SpriteBlend, Swipeable, type TapValue, Tappable, Text, type TextFormat, type TextFormatAnswer, type TextFormatFunction, type TextFormats, type TextRunStyle, type TextTagStyle, types_d_exports$14 as TextTypes, types_d_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_d_exports$16 as Ui, Vignette, type VignetteValue, type WarmDetail, Wave, type WaveValue, type WhyEntry, type WhyLive, types_d_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as uiPlugin, $t as animPlugin, A as defineEmitter, At as Pressed, B as types_exports$12, Bt as Emitter, C as hint, Cn as SaveUnreadableError, Ct as Draggable, D as tr, Dt as Pointer, E as defineScene, En as timePlugin, Et as Hovered, F as types_exports$17, Ft as Traced, G as types_exports$7, Gt as Glow, H as types_exports$10, Ht as Blur, I as types_exports$16, It as i18nPlugin, J as types_exports$4, Jt as defineFilter, K as types_exports$6, Kt as Noise, L as types_exports$15, Lt as messageArgument, M as defineBundles, Mt as Tappable, N as load, Nt as Touchable, O as defineFeature, Ot as PointerOver, P as ready, Pt as Traceable, Q as types_exports, Qt as assetsPlugin, R as types_exports$14, Rt as messageDuration, S as guide, Sn as modelPlugin, St as inputPlugin, T as projection, Tn as lifecyclePlugin, Tt as Held, U as types_exports$9, Ut as ColorMatrix, V as types_exports$11, Vt as Alpha, W as types_exports$8, Wt as Displacement, X as types_exports$2, Xt as audioPlugin, Y as types_exports$3, Yt as debugPlugin, Z as types_exports$1, Zt as scenesPlugin, _ as Dissolve, _n as contribution, _t as stagger, a as Wave, an as frameAt, at as defineAnimation, b as cubicBezier, bn as to, bt as use, c as Shadow, cn as PERF_GAP_BUCKETS, ct as haptic, d as Pixelate, dn as SHADER_WHATS, dt as play, en as AnimPlayer, et as resolve, f as Mirror, fn as CANVAS_RESTARTS, ft as sequence, g as Flash, gt as spawned, h as Fold, hn as flowPlugin, ht as spawn, i as screen, in as PASS_KINDS, it as HAPTIC_KINDS, j as music, jt as Swipeable, k as flattenFeatures, kt as Pressable, l as RevealRound, ln as PERF_LOG_VERSION, lt as mark, m as Grade, mn as worldPlugin, mt as sfx, n as createPlugin, nn as Frames, nt as textPlugin, o as Vignette, on as MONITOR_SECTIONS, ot as external, p as GradientMap, pn as DEMAND_REASONS, pt as set, q as types_exports$5, qt as Outline, r as defineGame, rn as rendererPlugin, rt as platformPlugin, s as Shine, sn as PERF_CAUSES, st as frames, t as createApp, tn as Animation, tt as defineMotion, u as RevealLine, un as PROBLEM_RULES, ut as parallel, v as Bloom, vn as exit, vt as stopSfx, w as schedule, wn as clockPlugin, wt as DropTarget, x as defineEffect, xn as type, xt as wait, y as Aura, yn as slot, yt as tween, z as types_exports$13, zt as effectsPlugin } from "./src-qeTzNTZA.mjs";
1
+ import { $ as uiPlugin, $t as animPlugin, A as defineEmitter, At as Pressed, B as types_exports$12, Bt as Emitter, C as hint, Cn as SaveUnreadableError, Ct as Draggable, D as tr, Dt as Pointer, E as defineScene, En as timePlugin, Et as Hovered, F as types_exports$17, Ft as Traced, G as types_exports$7, Gt as Glow, H as types_exports$10, Ht as Blur, I as types_exports$16, It as i18nPlugin, J as types_exports$4, Jt as defineFilter, K as types_exports$6, Kt as Noise, L as types_exports$15, Lt as messageArgument, M as defineBundles, Mt as Tappable, N as load, Nt as Touchable, O as defineFeature, Ot as PointerOver, P as ready, Pt as Traceable, Q as types_exports, Qt as assetsPlugin, R as types_exports$14, Rt as messageDuration, S as guide, Sn as modelPlugin, St as inputPlugin, T as projection, Tn as lifecyclePlugin, Tt as Held, U as types_exports$9, Ut as ColorMatrix, V as types_exports$11, Vt as Alpha, W as types_exports$8, Wt as Displacement, X as types_exports$2, Xt as audioPlugin, Y as types_exports$3, Yt as debugPlugin, Z as types_exports$1, Zt as scenesPlugin, _ as Dissolve, _n as contribution, _t as stagger, a as Wave, an as frameAt, at as defineAnimation, b as cubicBezier, bn as to, bt as use, c as Shadow, cn as PERF_GAP_BUCKETS, ct as haptic, d as Pixelate, dn as SHADER_WHATS, dt as play, en as AnimPlayer, et as resolve, f as Mirror, fn as CANVAS_RESTARTS, ft as sequence, g as Flash, gt as spawned, h as Fold, hn as flowPlugin, ht as spawn, i as screen, in as PASS_KINDS, it as HAPTIC_KINDS, j as music, jt as Swipeable, k as flattenFeatures, kt as Pressable, l as RevealRound, ln as PERF_LOG_VERSION, lt as mark, m as Grade, mn as worldPlugin, mt as sfx, n as createPlugin, nn as Frames, nt as textPlugin, o as Vignette, on as MONITOR_SECTIONS, ot as external, p as GradientMap, pn as DEMAND_REASONS, pt as set, q as types_exports$5, qt as Outline, r as defineGame, rn as rendererPlugin, rt as platformPlugin, s as Shine, sn as PERF_CAUSES, st as frames, t as createApp, tn as Animation, tt as defineMotion, u as RevealLine, un as PROBLEM_RULES, ut as parallel, v as Bloom, vn as exit, vt as stopSfx, w as schedule, wn as clockPlugin, wt as DropTarget, x as defineEffect, xn as type, xt as wait, y as Aura, yn as slot, yt as tween, z as types_exports$13, zt as effectsPlugin } from "./src-mZkN8URR.mjs";
2
2
  import { $ as Overlay, D as defineStyle, E as defineTokens, L as defineTextFormats, M as Countdown, N as Text, P as bind, Q as NineSlice, R as defineTextStyles, X as Display, Z as HudPart, _ as DebugTrigger, ct as Exiting, dt as Order, ft as Tree, gt as system, h as Box, ht as resource, it as Transform, lt as Layer, mt as mut, nt as Shape, pt as component, rt as Sprite, st as sprite, tt as Parent, ut as Now, vt as tag, w as popup, x as ScrollState, y as LocalWrite, z as label } from "./visual-x0TPowBE.mjs";
3
3
  import { t as defineComponent } from "./component-DGg5DqKK.mjs";
4
4
  export { Alpha, types_exports as Anim, AnimPlayer, Animation, types_exports$1 as Assets, types_exports$2 as Audio, Aura, Bloom, Blur, Box, CANVAS_RESTARTS, types_exports$3 as Clock, ColorMatrix, Countdown, DEMAND_REASONS, types_exports$4 as Debug, DebugTrigger, Displacement, Display, Dissolve, Draggable, DropTarget, types_exports$5 as Effects, Emitter, Exiting, Flash, types_exports$6 as Flow, Fold, Frames, Glow, Grade, GradientMap, HAPTIC_KINDS, Held, Hovered, HudPart, types_exports$7 as I18n, types_exports$8 as Input, Layer, types_exports$9 as Lifecycle, LocalWrite, MONITOR_SECTIONS, Mirror, types_exports$10 as Model, NineSlice, Noise, Now, Order, Outline, Overlay, PASS_KINDS, PERF_CAUSES, PERF_GAP_BUCKETS, PERF_LOG_VERSION, PROBLEM_RULES, Parent, Pixelate, types_exports$11 as Platform, Pointer, PointerOver, Pressable, Pressed, types_exports$12 as Renderer, RevealLine, RevealRound, SHADER_WHATS, SaveUnreadableError, types_exports$13 as Scenes, ScrollState, Shadow, Shape, Shine, Sprite, Swipeable, Tappable, Text, types_exports$14 as TextTypes, types_exports$15 as Time, Touchable, Traceable, Traced, Transform, Tree, types_exports$16 as Ui, Vignette, Wave, types_exports$17 as World, animPlugin, assetsPlugin, audioPlugin, bind, clockPlugin, component, contribution, createApp, createPlugin, cubicBezier, debugPlugin, defineAnimation, defineBundles, defineComponent, defineEffect, defineEmitter, defineFeature, defineFilter, defineGame, defineMotion, defineScene, defineStyle, defineTextFormats, defineTextStyles, defineTokens, effectsPlugin, exit, external, flattenFeatures, flowPlugin, frameAt, frames, guide, haptic, hint, i18nPlugin, inputPlugin, label, lifecyclePlugin, load, mark, messageArgument, messageDuration, modelPlugin, music, mut, parallel, platformPlugin, play, popup, projection, ready, rendererPlugin, resolve, resource, scenesPlugin, schedule, screen, sequence, set, sfx, slot, spawn, spawned, sprite, stagger, stopSfx, system, tag, textPlugin, timePlugin, to, tr, tween, type, uiPlugin, use, wait, worldPlugin };
@@ -1,9 +1,9 @@
1
- import { $r as Snapshot, Ar as Api$1, Ln as FlowGraph, Mr as Explained, Q as Api$2, Sr as FrameDiff, Vr as Api, _r as ComponentSchema, bn as Position, gt as RenderStats, h as Usage, t as Api$3, ut as Under, xr as EntitySnapshot, zn as JournalEntry } from "./types-D1xdKk_t.mjs";
2
- import { Y as AnimApi, a as AudioApi, g as EffectsStats, h as EffectsApi, nt as TimelinesSnapshot, r as UiApi, u as SoundEntry } from "./types-D-vnlN3n.mjs";
3
- import { c as UiNode } from "./types-Bl9jyah_.mjs";
4
- import { t as HeadlessApp } from "./headless-DFkrIVO4.mjs";
5
- import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-CM7Ng3EN.mjs";
6
- import { n as defineSource } from "./define-3zxu6rIq.mjs";
1
+ import { $r as Snapshot, Ar as Api$1, Ln as FlowGraph, Mr as Explained, Q as Api$2, Sr as FrameDiff, Vr as Api, _r as ComponentSchema, bn as Position, gt as RenderStats, h as Usage, t as Api$3, ut as Under, xr as EntitySnapshot, zn as JournalEntry } from "./types-DTkhpupa.mjs";
2
+ import { Y as AnimApi, a as AudioApi, g as EffectsStats, h as EffectsApi, nt as TimelinesSnapshot, r as UiApi, u as SoundEntry } from "./types-D8D2ZtEi.mjs";
3
+ import { c as UiNode } from "./types-CPiWOiSc.mjs";
4
+ import { t as HeadlessApp } from "./headless-PANjNy6-.mjs";
5
+ import { a as InputArguments, d as WatchApp, f as WatchInput, l as Source, o as InputOf, s as InputSchema, t as CheatEntry } from "./types-BuN6rLDs.mjs";
6
+ import { n as defineSource } from "./define-DSOTwTUY.mjs";
7
7
 
8
8
  //#region src/plugins/flow/doors/read.d.ts
9
9
  /**
package/dist/inspect.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import { l as defineSource } from "./session-ClUqpGId.mjs";
2
- import { n as read, r as watch, t as sources } from "./sources-D9Fk3Z4d.mjs";
2
+ import { n as read, r as watch, t as sources } from "./sources-DRP-bS6e.mjs";
3
3
  import "./inspect-la_KkjCS.mjs";
4
4
  export { defineSource, read, sources, watch };
@@ -1,2 +1,2 @@
1
- import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-CI8p6sVn.mjs";
1
+ import { a as jsxs, i as jsxDEV, n as JSX, r as jsx, t as Fragment } from "./runtime-CkJJvWKb.mjs";
2
2
  export { Fragment, type JSX, jsx, jsxDEV, jsxs };
@@ -1,2 +1,2 @@
1
- import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-CI8p6sVn.mjs";
1
+ import { a as jsxs, n as JSX, r as jsx, t as Fragment } from "./runtime-CkJJvWKb.mjs";
2
2
  export { Fragment, type JSX, jsx, jsxs };
@@ -1,4 +1,4 @@
1
- import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-Bl9jyah_.mjs";
1
+ import { _ as UiIntrinsicElements, a as JsxChild, t as DescriptionNode } from "./types-CPiWOiSc.mjs";
2
2
 
3
3
  //#region src/plugins/ui/jsx/runtime.d.ts
4
4
  /** What the compiler passes as props: the children plus whatever the tag declared. */
@@ -284,7 +284,8 @@ function underOf(world, entity) {
284
284
  * // The editor's stats panel on the board of Timber Town, in a dev build.
285
285
  * read(app, sources.render);
286
286
  * // { fps: 60, drawn: 60, frameMs: 3.4, textures: 12, textureMb: 41.25,
287
- * // textureMbSplit: { art: 30.1, targets: 9.75, kept: 1.4 }, views: 180, pooled: 24, renderPasses: 1, …, drawCalls: 14 }
287
+ * // textureMbSplit: { art: 28.1, text: 2, targets: 9.75, kept: 1.4, other: 0, idle: { targets: 4, kept: 0 } },
288
+ * // views: 180, pooled: 24, renderPasses: 1, …, drawCalls: 14 }
288
289
  * ```
289
290
  */
290
291
  const renderSource = defineSource({
@@ -14963,7 +14963,7 @@ function emptyMap$9() {
14963
14963
  *
14964
14964
  * @returns An empty weak map.
14965
14965
  */
14966
- function emptyWeakMap$3() {
14966
+ function emptyWeakMap$4() {
14967
14967
  return /* @__PURE__ */ new WeakMap();
14968
14968
  }
14969
14969
  /**
@@ -14998,10 +14998,10 @@ function createProjectionState() {
14998
14998
  keys: emptyMap$9(),
14999
14999
  keysByEntity: emptyMap$9(),
15000
15000
  mutes: emptyMap$9(),
15001
- muteCounts: emptyWeakMap$3(),
15002
- initialOnly: emptyWeakMap$3(),
15003
- ownedSets: emptyWeakMap$3(),
15004
- joinedMutes: emptyWeakMap$3(),
15001
+ muteCounts: emptyWeakMap$4(),
15002
+ initialOnly: emptyWeakMap$4(),
15003
+ ownedSets: emptyWeakMap$4(),
15004
+ joinedMutes: emptyWeakMap$4(),
15005
15005
  converged: [],
15006
15006
  offHints: [],
15007
15007
  leaving: emptyMap$9(),
@@ -15809,41 +15809,126 @@ function isTarget$3(source) {
15809
15809
  return source.uploadMethodId === "unknown" && (source.resource === null || source.resource === void 0);
15810
15810
  }
15811
15811
  /**
15812
- * Counts the texture sources the GPU holds and sums their estimated bytes, split three ways: a
15813
- * source with no upload method and no resource is a render target (a filter texture, a picture
15814
- * Pixi renders into), one the engine keeps as a picture is kept, every other source is art.
15815
- * Pixi's `managedTextures` exists on the WebGPU and the WebGL texture system alike (checked in
15816
- * 8.22); Pixi's canvas renderer keeps no GPU texture and answers zero. Both systems answer
15817
- * `Object.values` of a `GCManagedHash`, which keeps a `null` slot for every unloaded source, so
15818
- * only the live sources are counted. An indexed walk: no array is made.
15812
+ * The one usage the walk writes into: `textureUsage` runs at every `stats()` call, so it makes no object. Every call
15813
+ * writes over it.
15814
+ */
15815
+ const usage$1 = {
15816
+ count: 0,
15817
+ bytes: 0,
15818
+ art: 0,
15819
+ text: 0,
15820
+ targets: 0,
15821
+ kept: 0,
15822
+ other: 0,
15823
+ idleTargets: 0,
15824
+ idleKept: 0
15825
+ };
15826
+ /**
15827
+ * Counts the texture sources the GPU holds and sums their estimated bytes, split five ways, the first that fits: a
15828
+ * source the engine keeps as a picture is kept (and idle too while it waits in the kept pool); one with no upload
15829
+ * method and no resource is a render target (a filter texture, a picture Pixi renders into); one `sync` marked is text
15830
+ * or art; every other source is other. Pixi's `managedTextures` exists on the WebGPU and the WebGL texture system
15831
+ * alike (checked in 8.22); Pixi's canvas renderer keeps no GPU texture and answers zero. Both systems answer
15832
+ * `Object.values` of a `GCManagedHash`, which keeps a `null` slot for every unloaded source, so only the live sources
15833
+ * are counted. One indexed walk that makes nothing: the answer is the same object every call, `idleTargets` 0 (only
15834
+ * `host.textures()` reads Pixi's pool).
15819
15835
  *
15820
15836
  * @param app - The application that draws.
15821
- * @param kept - The sources the engine keeps as pictures.
15822
- * @returns The count, the bytes and their split.
15837
+ * @param kinds - The kept sources, the marks of `sync` and the idle kept sources: the host state.
15838
+ * @returns The count, the bytes and their split, written over by the next call.
15823
15839
  */
15824
- function textureUsage(app, kept) {
15840
+ function textureUsage(app, kinds) {
15825
15841
  const system = app.renderer.texture;
15826
- const usage = {
15827
- count: 0,
15828
- bytes: 0,
15829
- art: 0,
15830
- targets: 0,
15831
- kept: 0
15832
- };
15833
- if (!("managedTextures" in system)) return usage;
15842
+ usage$1.count = 0;
15843
+ usage$1.bytes = 0;
15844
+ usage$1.art = 0;
15845
+ usage$1.text = 0;
15846
+ usage$1.targets = 0;
15847
+ usage$1.kept = 0;
15848
+ usage$1.other = 0;
15849
+ usage$1.idleTargets = 0;
15850
+ usage$1.idleKept = 0;
15851
+ if (!("managedTextures" in system)) return usage$1;
15834
15852
  const sources = system.managedTextures;
15835
15853
  const total = sources.length;
15836
15854
  for (let index = 0; index < total; index += 1) {
15837
15855
  const source = sources[index];
15838
15856
  if (!source) continue;
15839
15857
  const bytes = sourceBytes(source);
15840
- usage.count += 1;
15841
- usage.bytes += bytes;
15842
- if (kept.has(source)) usage.kept += bytes;
15843
- else if (isTarget$3(source)) usage.targets += bytes;
15844
- else usage.art += bytes;
15858
+ usage$1.count += 1;
15859
+ usage$1.bytes += bytes;
15860
+ if (kinds.kept.has(source)) {
15861
+ usage$1.kept += bytes;
15862
+ if (kinds.idle.has(source)) usage$1.idleKept += bytes;
15863
+ } else if (isTarget$3(source)) usage$1.targets += bytes;
15864
+ else addMarked(kinds.marks.get(source), bytes);
15845
15865
  }
15846
- return usage;
15866
+ return usage$1;
15867
+ }
15868
+ /**
15869
+ * Adds the bytes of a source that is neither kept nor a target to its kind: text, art, or other without a mark.
15870
+ *
15871
+ * @param kind - The mark `sync` gave it, or `undefined`.
15872
+ * @param bytes - Its bytes.
15873
+ */
15874
+ function addMarked(kind, bytes) {
15875
+ if (kind === "text") usage$1.text += bytes;
15876
+ else if (kind === "art") usage$1.art += bytes;
15877
+ else usage$1.other += bytes;
15878
+ }
15879
+ /**
15880
+ * The scratch of the bucket walk: the kept sources it skips, set for the length of one `idleTargetBytes` call, and the
15881
+ * bytes it summed so far. One walk at a time, nothing of it leaves.
15882
+ */
15883
+ const walk$2 = {
15884
+ kept: void 0,
15885
+ bytes: 0
15886
+ };
15887
+ /**
15888
+ * The bytes of one texture that waits for reuse: a live source the engine does not keep.
15889
+ *
15890
+ * @param texture - An idle texture.
15891
+ * @param kept - The sources the engine keeps as pictures.
15892
+ * @returns Its bytes, or 0.
15893
+ */
15894
+ function idleBytes(texture, kept) {
15895
+ if (texture === void 0) return 0;
15896
+ const { source } = texture;
15897
+ return source.destroyed || kept.has(source) ? 0 : sourceBytes(source);
15898
+ }
15899
+ /**
15900
+ * Adds the idle textures of one bucket of Pixi's pool to the walk: the callback `Map.prototype.forEach` takes, made
15901
+ * once at module level, so the walk makes no function and no iterator.
15902
+ *
15903
+ * @param textures - The idle textures of one bucket.
15904
+ */
15905
+ function addBucket(textures) {
15906
+ const { kept } = walk$2;
15907
+ if (kept === void 0) return;
15908
+ for (let index = 0; index < textures.length; index += 1) walk$2.bytes += idleBytes(textures[index], kept);
15909
+ }
15910
+ /**
15911
+ * The bytes of the render targets waiting for reuse: the idle textures of Pixi's `TexturePool` and the targets the
15912
+ * trim holds until their bind groups let go (`pool.held`). A texture counts when its source is not destroyed and not
15913
+ * kept. Reads the private buckets of Pixi 8, as the trim does; without them it answers 0. Makes nothing: one
15914
+ * `forEach` with a module-level callback, indexed walks inside.
15915
+ *
15916
+ * @param pixi - The module the renderer loaded.
15917
+ * @param held - The targets the trim holds.
15918
+ * @param kept - The sources the engine keeps as pictures.
15919
+ * @returns The bytes.
15920
+ */
15921
+ function idleTargetBytes(pixi, held, kept) {
15922
+ const buckets = pixi.TexturePool._buckets;
15923
+ if (!(buckets instanceof Map)) return 0;
15924
+ walk$2.kept = kept;
15925
+ walk$2.bytes = 0;
15926
+ buckets.forEach(addBucket);
15927
+ let bytes = walk$2.bytes;
15928
+ walk$2.kept = void 0;
15929
+ walk$2.bytes = 0;
15930
+ for (let index = 0; index < held.length; index += 1) bytes += idleBytes(held[index], kept);
15931
+ return bytes;
15847
15932
  }
15848
15933
  /**
15849
15934
  * Hides containers for the length of one synchronous call and shows them again right after it,
@@ -15955,7 +16040,7 @@ function beginLoss(ctx, kind, reason) {
15955
16040
  const info = {
15956
16041
  kind,
15957
16042
  reason,
15958
- textureBytes: state.app === void 0 ? 0 : textureUsage(state.app, state.kept).bytes
16043
+ textureBytes: state.app === void 0 ? 0 : textureUsage(state.app, state).bytes
15959
16044
  };
15960
16045
  state.ready = false;
15961
16046
  state.restoring = true;
@@ -17488,6 +17573,14 @@ function emptyWeakSet$3() {
17488
17573
  return /* @__PURE__ */ new WeakSet();
17489
17574
  }
17490
17575
  /**
17576
+ * Creates an empty weak map, out of the exported declaration for lint rule L5 as `emptyWeakSet` is.
17577
+ *
17578
+ * @returns An empty weak map.
17579
+ */
17580
+ function emptyWeakMap$3() {
17581
+ return /* @__PURE__ */ new WeakMap();
17582
+ }
17583
+ /**
17491
17584
  * Creates the state of the pool trim: no frame drawn, no scene change waiting, no rest judged, nothing trimmed.
17492
17585
  *
17493
17586
  * @returns The pool branch of the host state.
@@ -17504,8 +17597,8 @@ function createPoolState() {
17504
17597
  /**
17505
17598
  * Creates the initial host state: no Pixi, no application, nothing drawn, nothing listening, no
17506
17599
  * counting, no bitmap text pipe and no render-group pipe installed, the resolution of a page without a window (device
17507
- * pixels 1, cap 2, no override, nothing pending, the whole scale, no scale allowed yet), no own GPU, no kept picture
17508
- * and no pool trim yet.
17600
+ * pixels 1, cap 2, no override, nothing pending, the whole scale, no scale allowed yet), no own GPU, no kept picture,
17601
+ * no marked or idle source and no pool trim yet.
17509
17602
  *
17510
17603
  * @returns The host branch of the plugin state.
17511
17604
  */
@@ -17541,6 +17634,8 @@ function createHostState() {
17541
17634
  onResolutionChange: [],
17542
17635
  ownGpu: void 0,
17543
17636
  kept: emptyWeakSet$3(),
17637
+ marks: emptyWeakMap$3(),
17638
+ idle: emptyWeakSet$3(),
17544
17639
  pixelsFailed: false,
17545
17640
  pool: createPoolState(),
17546
17641
  onTrim: [],
@@ -17940,11 +18035,11 @@ function cellU8(column, index) {
17940
18035
  * managed textures; called only when a trim is due.
17941
18036
  *
17942
18037
  * @param app - The application that draws.
17943
- * @param kept - The sources the engine keeps as pictures: never counted as targets.
18038
+ * @param kinds - The host state: its kept pictures are never counted as targets.
17944
18039
  * @returns The bytes.
17945
18040
  */
17946
- function targetBytes(app, kept) {
17947
- return textureUsage(app, kept).targets;
18041
+ function targetBytes(app, kinds) {
18042
+ return textureUsage(app, kinds).targets;
17948
18043
  }
17949
18044
  /**
17950
18045
  * Which trim is due after a frame: a rest once the screen drew nothing for `restMs`, once per rest; else a scene
@@ -18027,9 +18122,9 @@ function trimPool(ctx, reason) {
18027
18122
  const state = ctx.state.host;
18028
18123
  const { app, pixi } = state;
18029
18124
  if (!state.ready || pixi === void 0 || app === void 0) return 0;
18030
- const before = targetBytes(app, state.kept);
18125
+ const before = targetBytes(app, state);
18031
18126
  clearPool(pixi, state.pool.held);
18032
- const after = targetBytes(app, state.kept);
18127
+ const after = targetBytes(app, state);
18033
18128
  const freedMb = roundTo((before - after) / BYTES_PER_MB$2, 2);
18034
18129
  state.pool.baseline = after;
18035
18130
  state.pool.restDone = true;
@@ -18062,7 +18157,7 @@ function afterFrame(ctx, drawn) {
18062
18157
  }
18063
18158
  const due = dueReason(pool, config, now, drawn);
18064
18159
  if (due === void 0) return;
18065
- if (targetBytes(app, state.kept) - pool.baseline < config.aboveMb * 1048576) {
18160
+ if (targetBytes(app, state) - pool.baseline < config.aboveMb * 1048576) {
18066
18161
  pool.restDone = true;
18067
18162
  pool.sceneAt = void 0;
18068
18163
  return;
@@ -18080,7 +18175,7 @@ function trimOnPause(ctx) {
18080
18175
  const state = ctx.state.host;
18081
18176
  const app = state.app;
18082
18177
  if (!state.ready || app === void 0) return 0;
18083
- return targetBytes(app, state.kept) > state.pool.baseline ? trimPool(ctx, "pause") : 0;
18178
+ return targetBytes(app, state) > state.pool.baseline ? trimPool(ctx, "pause") : 0;
18084
18179
  }
18085
18180
  /**
18086
18181
  * Remembers a scene change; the policy trims `restMs` after it. A later change moves the moment.
@@ -18253,6 +18348,13 @@ function createHostApi(ctx, deps) {
18253
18348
  if (on) state.kept.add(source);
18254
18349
  else state.kept.delete(source);
18255
18350
  },
18351
+ mark: (source, kind) => {
18352
+ state.marks.set(source, kind);
18353
+ },
18354
+ idle: (source, on) => {
18355
+ if (on) state.idle.add(source);
18356
+ else state.idle.delete(source);
18357
+ },
18256
18358
  extract: async (hidden) => {
18257
18359
  const app = state.app;
18258
18360
  if (!state.ready || app === void 0) return void 0;
@@ -18268,10 +18370,16 @@ function createHostApi(ctx, deps) {
18268
18370
  count: 0,
18269
18371
  bytes: 0,
18270
18372
  art: 0,
18373
+ text: 0,
18271
18374
  targets: 0,
18272
- kept: 0
18375
+ kept: 0,
18376
+ other: 0,
18377
+ idleTargets: 0,
18378
+ idleKept: 0
18273
18379
  };
18274
- return textureUsage(app, state.kept);
18380
+ const usage = textureUsage(app, state);
18381
+ if (state.pixi !== void 0) usage.idleTargets = idleTargetBytes(state.pixi, state.pool.held, state.kept);
18382
+ return usage;
18275
18383
  },
18276
18384
  pixels: (resolution) => {
18277
18385
  const app = state.app;
@@ -18835,7 +18943,8 @@ function fromPool(kctx, size) {
18835
18943
  }
18836
18944
  /**
18837
18945
  * Puts a texture of a record whose view left into the pool (F119), for the next take of its size: a scene that leaves
18838
- * and comes back makes no render target. Its bytes count in the budget until it is taken or dropped.
18946
+ * and comes back makes no render target. Its bytes count in the budget, and as idle in `host.textures()`, until it is
18947
+ * taken or dropped.
18839
18948
  *
18840
18949
  * @param kctx - The kept context.
18841
18950
  * @param texture - The texture.
@@ -18847,9 +18956,10 @@ function poolTexture(kctx, texture) {
18847
18956
  kctx.state.pool.push(texture);
18848
18957
  kctx.state.bytes += bytes;
18849
18958
  kctx.state.poolBytes += bytes;
18959
+ kctx.host.idle(source, true);
18850
18960
  }
18851
18961
  /**
18852
- * Gives back the bytes of a texture that left the pool.
18962
+ * Gives back the bytes of a texture that left the pool, taken or destroyed; it is idle no longer.
18853
18963
  *
18854
18964
  * @param kctx - The kept context.
18855
18965
  * @param texture - The texture.
@@ -18859,6 +18969,7 @@ function unpool(kctx, texture) {
18859
18969
  const bytes = textureBytes(source.width, source.height, source.resolution);
18860
18970
  kctx.state.bytes -= bytes;
18861
18971
  kctx.state.poolBytes -= bytes;
18972
+ kctx.host.idle(source, false);
18862
18973
  }
18863
18974
  /**
18864
18975
  * Destroys every texture of the pool and gives its bytes back: room for a take, a reset.
@@ -26098,8 +26209,14 @@ function sampleLine(pc, start, end) {
26098
26209
  count: usage.count,
26099
26210
  mb: ms(usage.bytes / BYTES_PER_MB$2),
26100
26211
  art: ms(usage.art / BYTES_PER_MB$2),
26212
+ text: ms(usage.text / BYTES_PER_MB$2),
26101
26213
  targets: ms(usage.targets / BYTES_PER_MB$2),
26102
- kept: ms(usage.kept / BYTES_PER_MB$2)
26214
+ kept: ms(usage.kept / BYTES_PER_MB$2),
26215
+ other: ms(usage.other / BYTES_PER_MB$2),
26216
+ idle: {
26217
+ targets: ms(usage.idleTargets / BYTES_PER_MB$2),
26218
+ kept: ms(usage.idleKept / BYTES_PER_MB$2)
26219
+ }
26103
26220
  },
26104
26221
  views: views.views,
26105
26222
  pooled: views.pooled,
@@ -28257,8 +28374,14 @@ function createMonitorApi(ctx, deps) {
28257
28374
  textureMb: roundTo(usage.bytes / BYTES_PER_MB$2, 2),
28258
28375
  textureMbSplit: {
28259
28376
  art: roundTo(usage.art / BYTES_PER_MB$2, 2),
28377
+ text: roundTo(usage.text / BYTES_PER_MB$2, 2),
28260
28378
  targets: roundTo(usage.targets / BYTES_PER_MB$2, 2),
28261
- kept: roundTo(usage.kept / BYTES_PER_MB$2, 2)
28379
+ kept: roundTo(usage.kept / BYTES_PER_MB$2, 2),
28380
+ other: roundTo(usage.other / BYTES_PER_MB$2, 2),
28381
+ idle: {
28382
+ targets: roundTo(usage.idleTargets / BYTES_PER_MB$2, 2),
28383
+ kept: roundTo(usage.idleKept / BYTES_PER_MB$2, 2)
28384
+ }
28262
28385
  },
28263
28386
  views: counts.views,
28264
28387
  pooled: counts.pooled,
@@ -30416,7 +30539,7 @@ function parseFont(pixi, key, fnt) {
30416
30539
  /**
30417
30540
  * Installs a font for an asset key. Installing the same key again replaces the font, which is
30418
30541
  * what a bundle that was unloaded and loaded again needs. The first font of a device queues the
30419
- * text probe of the warm-up (F4).
30542
+ * text probe of the warm-up (F4). Its page counts as text in `stats().textureMbSplit` (F236).
30420
30543
  *
30421
30544
  * @param sctx - Domain context of the sync module.
30422
30545
  * @param key - The asset key of the font.
@@ -30433,6 +30556,7 @@ function installFont$1(sctx, key, fnt, texture) {
30433
30556
  textures: [texture]
30434
30557
  });
30435
30558
  drawFromLineTop(font);
30559
+ sctx.deps.host.mark(texture.source, "text");
30436
30560
  const cacheKey = `${key}${CACHE_SUFFIX}`;
30437
30561
  if (pixi.Cache.has(cacheKey)) pixi.Cache.remove(cacheKey);
30438
30562
  pixi.Cache.set(cacheKey, font);
@@ -31940,6 +32064,7 @@ function defaultBordersOf(nine) {
31940
32064
  /**
31941
32065
  * Makes a Pixi texture out of a decoded image, on behalf of `assets`, which decides when it leaves the GPU.
31942
32066
  * An ImageBitmap is held until its source is on the GPU, then closed and replaced by a 1x1 stand-in (sync/release.ts).
32067
+ * Its source counts as art in `stats().textureMbSplit` (F236).
31943
32068
  *
31944
32069
  * @param sctx - Domain context of the sync module.
31945
32070
  * @param image - The decoded image.
@@ -31955,6 +32080,7 @@ function createTexture(sctx, image, options) {
31955
32080
  }) : pixi.Texture.from(image);
31956
32081
  const nine = options?.nine;
31957
32082
  base.source.autoGarbageCollect = false;
32083
+ sctx.deps.host.mark(base.source, "art");
31958
32084
  holdImage(sctx.ctx.state.sync, base.source);
31959
32085
  if (nine === void 0) return base;
31960
32086
  const bordered = new pixi.Texture({
@@ -35934,7 +36060,7 @@ function writeTrail(ctx, trail, record) {
35934
36060
  record.uptimeS = uptimeOf(now);
35935
36061
  record.path = pathOf$1(ctx);
35936
36062
  record.kind = host.kind;
35937
- record.textureMb = host.app === void 0 ? 0 : tenth(textureUsage(host.app, host.kept).bytes / BYTES_PER_MB$1);
36063
+ record.textureMb = host.app === void 0 ? 0 : tenth(textureUsage(host.app, host).bytes / BYTES_PER_MB$1);
35938
36064
  record.heapMb = heapMb$1();
35939
36065
  record.fps = spanMs > 0 ? tenth(trail.frames * MS_PER_S / spanMs) : 0;
35940
36066
  record.uploadFrames = trail.uploadFrames;
@@ -1,7 +1,7 @@
1
- import { Bn as NodeTable, Ir as ClockSource, Jn as Hint, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Wn as Descriptor, Wr as Json, Yn as NodeFx } from "./types-D1xdKk_t.mjs";
2
- import { t as createApp } from "./index-CVmEBBm5.mjs";
3
- import { b as memory, x as saveOf, y as WithGameState } from "./types-DHWjH6p9.mjs";
4
- import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-DFkrIVO4.mjs";
1
+ import { Bn as NodeTable, Ir as ClockSource, Jn as Hint, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Wn as Descriptor, Wr as Json, Yn as NodeFx } from "./types-DTkhpupa.mjs";
2
+ import { t as createApp } from "./index-CbMDaUan.mjs";
3
+ import { b as memory, x as saveOf, y as WithGameState } from "./types-DkQbqqw0.mjs";
4
+ import { a as createHeadless, i as ReproResult, n as HeadlessGame, o as runRepro, r as Repro, s as stepFrames, t as HeadlessApp } from "./headless-PANjNy6-.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/clock/fake.d.ts
package/dist/testing.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { gn as refuseStart, k as flattenFeatures, t as createApp, vn as exit, xn as type } from "./src-qeTzNTZA.mjs";
1
+ import { gn as refuseStart, k as flattenFeatures, t as createApp, vn as exit, xn as type } from "./src-mZkN8URR.mjs";
2
2
  import { n as saveOf, t as memory } from "./memory-DeD9wis6.mjs";
3
3
  import { n as fakeClock } from "./fake-hnJcJeYf.mjs";
4
4
  import { i as stepFrames, r as runRepro, t as createHeadless } from "./headless-yi2XmYWC.mjs";
@@ -1,5 +1,5 @@
1
- import { $r as Snapshot, Wr as Json } from "./types-D1xdKk_t.mjs";
2
- import { t as HeadlessApp } from "./headless-DFkrIVO4.mjs";
1
+ import { $r as Snapshot, Wr as Json } from "./types-DTkhpupa.mjs";
2
+ import { t as HeadlessApp } from "./headless-PANjNy6-.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
 
5
5
  //#region src/plugins/flow/doors/types.d.ts
@@ -1,4 +1,4 @@
1
- import { $n as ChangeHook, Ar as Api$2, D as AxisPose, Fr as Api$5, Jn as Hint, Q as Api$3, Qn as AnchorTarget, Wn as Descriptor, Wr as Json, Y as TransformValue, Zn as Answered, ar as NumericFields, bi as Require, br as Entity, cr as ReducedMotion, fr as ViewHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, kr as TagType, mn as Api$1, mr as AnyComponentType, nr as Motion, or as ProjectionMotion, pr as AnyComponent, rr as MotionCause, s as Events$1, t as Api$4, tr as Ease, tt as PixiContainer, ui as Api, vr as ComponentType, yt as ViewportSize } from "./types-D1xdKk_t.mjs";
1
+ import { $n as ChangeHook, Ar as Api$2, D as AxisPose, Fr as Api$5, Jn as Hint, Q as Api$3, Qn as AnchorTarget, Wn as Descriptor, Wr as Json, Y as TransformValue, Zn as Answered, ar as NumericFields, bi as Require, br as Entity, cr as ReducedMotion, fr as ViewHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, kr as TagType, mn as Api$1, mr as AnyComponentType, nr as Motion, or as ProjectionMotion, pr as AnyComponent, rr as MotionCause, s as Events$1, t as Api$4, tr as Ease, tt as PixiContainer, ui as Api, vr as ComponentType, yt as ViewportSize } from "./types-DTkhpupa.mjs";
2
2
  import { Log } from "@moku-labs/common/browser";
3
3
  import { PluginCtx } from "@moku-labs/core";
4
4
  import { Node, Yoga } from "yoga-layout/load";
@@ -1,5 +1,5 @@
1
- import { A as FilterSlotInputs, Ar as Api$3, M as SyncApi, Q as Api$4, Qn as AnchorTarget, Un as TypeTag, Ur as Events$3, Vr as Api$6, Wn as Descriptor, Wr as Json, ar as NumericFields, at as PixiSprite, b as Events$4, bi as Require, br as Entity, bt as FilterCache, cr as ReducedMotion, dr as TrackSegment, gr as ComponentHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, j as FilterSlotQuad, k as FilterSlot, mn as Api$2, nt as PixiFilter, oi as Events$5, ot as PixiTexture, pr as AnyComponent, rt as PixiGpuProgram, s as Events$1, st as PixiUniformGroup, t as Api$5, tr as Ease, ui as Api$1, ur as TrackOptions, vr as ComponentType, vt as Point, yi as Events$2 } from "./types-D1xdKk_t.mjs";
2
- import { R as InputApi, T as TextApi, U as I18nApi, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, tt as StylesState } from "./types-Bl9jyah_.mjs";
1
+ import { A as FilterSlotInputs, Ar as Api$3, M as SyncApi, Q as Api$4, Qn as AnchorTarget, Un as TypeTag, Ur as Events$3, Vr as Api$6, Wn as Descriptor, Wr as Json, ar as NumericFields, at as PixiSprite, b as Events$4, bi as Require, br as Entity, bt as FilterCache, cr as ReducedMotion, dr as TrackSegment, gr as ComponentHandle, hr as AnyComponentValue, ir as MotionHandle, it as PixiModule, j as FilterSlotQuad, k as FilterSlot, mn as Api$2, nt as PixiFilter, oi as Events$5, ot as PixiTexture, pr as AnyComponent, rt as PixiGpuProgram, s as Events$1, st as PixiUniformGroup, t as Api$5, tr as Ease, ui as Api$1, ur as TrackOptions, vr as ComponentType, vt as Point, yi as Events$2 } from "./types-DTkhpupa.mjs";
2
+ import { R as InputApi, T as TextApi, U as I18nApi, c as UiNode, i as Finding, l as LayoutState, n as ElementChange, o as JsxState, r as ElementMotion, tt as StylesState } from "./types-CPiWOiSc.mjs";
3
3
  import { Log } from "@moku-labs/common/browser";
4
4
  import { PluginCtx } from "@moku-labs/core";
5
5
 
@@ -8134,12 +8134,23 @@ type PerfSampleLine = PerfLine<"sample"> & {
8134
8134
  blockingMs: number | null;
8135
8135
  } | null;
8136
8136
  heapMb: number | null;
8137
+ /**
8138
+ * The GPU textures of the moment, MiB: the five kinds of `stats().textureMbSplit` add up to `mb`, `idle` is the share
8139
+ * of the targets and the kept pictures waiting in a pool (F236). The engine always writes `text`, `other` and `idle`;
8140
+ * optional for a reader of an older log.
8141
+ */
8137
8142
  textures: {
8138
8143
  count: number;
8139
8144
  mb: number;
8140
8145
  art: number;
8146
+ text?: number;
8141
8147
  targets: number;
8142
8148
  kept: number;
8149
+ other?: number;
8150
+ idle?: {
8151
+ targets: number;
8152
+ kept: number;
8153
+ };
8143
8154
  }; /** Kept pictures: the most drawn in a frame, their MiB, the takes and the stage-3 refreshes of the second. */
8144
8155
  kept: {
8145
8156
  pictures: number;
@@ -8618,6 +8629,11 @@ type OwnGpu = {
8618
8629
  adapter: GPUAdapter;
8619
8630
  device: GPUDevice;
8620
8631
  };
8632
+ /**
8633
+ * What `sync` made a texture source for: the art a game loaded through `assets`, or the page of a bitmap font. Not
8634
+ * public.
8635
+ */
8636
+ type SourceKind = "art" | "text";
8621
8637
  /**
8622
8638
  * host module state.
8623
8639
  */
@@ -8671,7 +8687,9 @@ type HostState = {
8671
8687
  resolution: ResolutionState; /** Run after a frame applied a new resolution; emptied by `stopHost`. */
8672
8688
  onResolutionChange: ResolutionListener[]; /** The engine's own adapter and device of an agent build on WebGPU; `undefined` otherwise. */
8673
8689
  ownGpu: OwnGpu | undefined; /** Texture sources the engine keeps as pictures (F12, C14): `textures()` counts them apart. */
8674
- kept: WeakSet<object>; /** A pixel read of the oracle failed and was logged: the next failures stay quiet. */
8690
+ kept: WeakSet<object>; /** What `sync` made a texture source for (F236): a game's art, or a font page. `textures()` splits by it. */
8691
+ marks: WeakMap<object, SourceKind>; /** The kept sources waiting in the kept pool (F119, F236): `textures()` counts them as idle too. */
8692
+ idle: WeakSet<object>; /** A pixel read of the oracle failed and was logged: the next failures stay quiet. */
8675
8693
  pixelsFailed: boolean; /** The pool trim of C14. */
8676
8694
  pool: PoolState; /** The trim listeners: the monitor's, in an agent build. Emptied by `stopHost`. */
8677
8695
  onTrim: TrimListener[]; /** The listener of the canvas passes that really begin: the monitor's, set at every attach; cleared by `stopHost`. */
@@ -8786,24 +8804,34 @@ type HostApi = {
8786
8804
  resolution(): number;
8787
8805
  };
8788
8806
  /**
8789
- * The textures the GPU holds: how many sources, their estimated bytes, and the bytes split into
8790
- * art, render targets and kept pictures.
8807
+ * The textures the GPU holds: how many sources, their estimated bytes, and the bytes split into five kinds that add up
8808
+ * to `bytes` (art, font pages, render targets, kept pictures, everything else), with the idle share of the targets and
8809
+ * of the kept pictures.
8791
8810
  *
8792
8811
  * @example
8793
8812
  * ```ts
8794
- * const usage: TextureUsage = { count: 2, bytes: 5_242_880, art: 4_194_304, targets: 1_048_576, kept: 0 };
8813
+ * // One 1024 x 1024 image a game loaded and one 512 x 512 filter target waiting in Pixi's pool.
8814
+ * const usage: TextureUsage = {
8815
+ * count: 2, bytes: 5_242_880, art: 4_194_304, text: 0, targets: 1_048_576, kept: 0, other: 0,
8816
+ * idleTargets: 1_048_576, idleKept: 0
8817
+ * };
8795
8818
  * ```
8796
8819
  */
8797
8820
  type TextureUsage = {
8798
- count: number;
8799
- bytes: number; /** Bytes of the sources a game loaded: images, atlases. */
8800
- art: number; /** Bytes of the render targets: filter textures, pictures Pixi renders into. */
8821
+ /** Live texture sources. */count: number; /** Their estimated bytes: the sum of the five kinds below. */
8822
+ bytes: number; /** Bytes of the sources a game loaded through `sync.textures.create`: images, atlases; font pages not. */
8823
+ art: number; /** Bytes of the font pages installed through `sync.fonts.install`. */
8824
+ text: number; /** Bytes of the render targets: filter textures, pictures Pixi renders into. */
8801
8825
  targets: number; /** Bytes of the sources the engine keeps as pictures. */
8802
- kept: number;
8826
+ kept: number; /** Bytes of every other live source: what Pixi made itself, a gradient, its own white texture. */
8827
+ other: number; /** Of `targets`: the idle textures of Pixi's pool and the targets the trim holds. Filled by `host.textures()`. */
8828
+ idleTargets: number; /** Of `kept`: the kept pictures waiting in the kept pool. */
8829
+ idleKept: number;
8803
8830
  };
8804
8831
  /**
8805
8832
  * What a `decideLoss` callback hears of a loss: the backend, what the browser said, and the bytes of every texture
8806
- * source the lost application held (art, targets and kept pictures), measured before it went. Not public.
8833
+ * source the lost application held (every kind: art, font pages, targets, kept pictures and the rest), measured before
8834
+ * it went. Not public.
8807
8835
  */
8808
8836
  type LossInfo = {
8809
8837
  kind: "webgpu" | "webgl";
@@ -8974,6 +9002,21 @@ type HostInternal = {
8974
9002
  * @param on - True to count it as kept.
8975
9003
  */
8976
9004
  keep(source: object, on: boolean): void;
9005
+ /**
9006
+ * Marks what a texture source was made for, so `textures()` counts it as art or as text. A later mark replaces an
9007
+ * earlier one: a font page made as art becomes text.
9008
+ *
9009
+ * @param source - The source.
9010
+ * @param kind - `"art"` for an image `sync` made, `"text"` for a font page.
9011
+ */
9012
+ mark(source: object, kind: SourceKind): void;
9013
+ /**
9014
+ * Counts a kept picture's source as idle in `textures()`, waiting in the kept pool, or no longer.
9015
+ *
9016
+ * @param source - The source.
9017
+ * @param on - True while it waits in the pool.
9018
+ */
9019
+ idle(source: object, on: boolean): void;
8977
9020
  /**
8978
9021
  * Draws the stage into a PNG over the whole canvas. Every container in `hidden` is set
8979
9022
  * `visible = false` around the synchronous render inside Pixi's extract and set back right after
@@ -8984,8 +9027,11 @@ type HostInternal = {
8984
9027
  */
8985
9028
  extract(hidden: readonly PixiContainer[]): Promise<string | undefined>;
8986
9029
  /**
8987
- * The texture sources the GPU holds and their estimated memory, read at call time, split into
8988
- * art, render targets and kept pictures.
9030
+ * The texture sources the GPU holds and their estimated memory, read at call time, split into art, font pages,
9031
+ * render targets, kept pictures and the rest, with the idle targets and kept pictures. Allocates nothing while the
9032
+ * application draws: the answer is one module-level object shared by every renderer of the page, written over by
9033
+ * the next call and also by the pool trim (`afterFrame`/`trimPool` in `host/pool.ts`) and a device loss
9034
+ * (`host/device.ts`), so a caller reads the numbers at once. While inert it answers a fresh zero object.
8989
9035
  *
8990
9036
  * @returns The usage; zero while nothing draws.
8991
9037
  */
@@ -9584,7 +9630,10 @@ type ViewportInternal = {
9584
9630
  * // The board of Timber Town in a dev build: one glowing button on screen, kept as a picture at rest.
9585
9631
  * const stats: RenderStats = {
9586
9632
  * fps: 60, drawn: 60, frameMs: 3.4, textures: 12, textureMb: 41.25,
9587
- * textureMbSplit: { art: 30.1, targets: 9.75, kept: 1.4 }, views: 180, pooled: 24,
9633
+ * textureMbSplit: {
9634
+ * art: 28.1, text: 2, targets: 9.75, kept: 1.4, other: 0, idle: { targets: 4, kept: 0 }
9635
+ * },
9636
+ * views: 180, pooled: 24,
9588
9637
  * renderPasses: 1, renderPassesMax: 3, canvasPasses: 1, canvasPassesMax: 2,
9589
9638
  * kept: { pictures: 1, mb: 1.4, retakes: 0, evicted: 0, refused: 0 }, drawCalls: 14
9590
9639
  * };
@@ -9615,13 +9664,24 @@ type RenderStats = {
9615
9664
  textures: number; /** Estimated GPU memory of those sources in MiB: 4 bytes per pixel, every mip level. */
9616
9665
  textureMb: number;
9617
9666
  /**
9618
- * The same memory split into the art a game loaded, the render targets Pixi draws into and the
9619
- * pictures the engine keeps, MiB with 2 decimals; all 0 while inert.
9667
+ * The same memory split five ways, MiB with 2 decimals; all 0 while inert. `art`: the sources made through
9668
+ * `sync.textures.create` (the bundles of `assets`), font pages left out. `text`: the font pages installed through
9669
+ * `sync.fonts.install`. `targets`: the render targets Pixi draws into (filters, effects, transitions). `kept`: the
9670
+ * pictures the engine keeps. `other`: every other live source, what Pixi made itself (gradients, its white texture).
9671
+ * A source counts once, the first that fits of kept, target, text, art, other, so the five add up to `textureMb` up
9672
+ * to the rounding. `idle` holds the share of `targets` and of `kept` that waits in a pool for reuse: the idle
9673
+ * textures of Pixi's `TexturePool` with the targets the trim holds, and the kept pool of pictures whose views left.
9620
9674
  */
9621
9675
  textureMbSplit: {
9622
9676
  art: number;
9677
+ text: number;
9623
9678
  targets: number;
9624
9679
  kept: number;
9680
+ other: number;
9681
+ idle: {
9682
+ targets: number;
9683
+ kept: number;
9684
+ };
9625
9685
  }; /** Display objects `sync` holds for entities. */
9626
9686
  views: number; /** Display objects waiting in the pools. */
9627
9687
  pooled: number;
@@ -10056,7 +10116,7 @@ type MonitorState = {
10056
10116
  * @example
10057
10117
  * ```ts
10058
10118
  * // A headless test: nothing is drawn, so every counter is 0 and there is no picture.
10059
- * app.renderer.stats(); // { fps: 0, drawn: 0, frameMs: 0, textures: 0, textureMb: 0, textureMbSplit: { art: 0, targets: 0, kept: 0 }, views: 0, pooled: 0, renderPasses: 0, renderPassesMax: 0, canvasPasses: 0, canvasPassesMax: 0, kept: { pictures: 0, mb: 0, retakes: 0, evicted: 0, refused: 0 } }
10119
+ * app.renderer.stats(); // { fps: 0, drawn: 0, frameMs: 0, textures: 0, textureMb: 0, textureMbSplit: { art: 0, text: 0, targets: 0, kept: 0, other: 0, idle: { targets: 0, kept: 0 } }, views: 0, pooled: 0, renderPasses: 0, renderPassesMax: 0, canvasPasses: 0, canvasPassesMax: 0, kept: { pictures: 0, mb: 0, retakes: 0, evicted: 0, refused: 0 } }
10060
10120
  * await app.renderer.capture(); // undefined
10061
10121
  * ```
10062
10122
  */
@@ -10068,14 +10128,15 @@ type MonitorApi = {
10068
10128
  * (the estimate of the filter slots where nothing counts). `drawCalls`, `redraws` and `rebuilds` are there in a dev
10069
10129
  * build only.
10070
10130
  *
10071
- * @returns Frames per second, frame work, GPU textures and their memory, views, pooled objects,
10131
+ * @returns Frames per second, frame work, GPU textures and their memory, split into art, text, targets, kept and other with the idle share of targets
10132
+ * and kept, views, pooled objects,
10072
10133
  * render passes and canvas passes with their most in the last second, the kept pictures, and in a dev build the
10073
10134
  * draw calls of the last frame and the Graphics redraws and Pixi rebuilds per second. Inert: all 0.
10074
10135
  * @example
10075
10136
  * ```ts
10076
10137
  * // The editor's stats panel reads it every frame. Here the game drew one sprite for 51 frames,
10077
10138
  * // 20 ms apart with 4 ms of work each, and its texture is not uploaded yet.
10078
- * app.renderer.stats(); // { fps: 50, drawn: 50, frameMs: 4, textures: 0, textureMb: 0, textureMbSplit: { art: 0, targets: 0, kept: 0 }, views: 1, pooled: 0, renderPasses: 1, renderPassesMax: 1, canvasPasses: 1, canvasPassesMax: 1, kept: { pictures: 0, mb: 0, retakes: 0, evicted: 0, refused: 0 } }
10139
+ * app.renderer.stats(); // { fps: 50, drawn: 50, frameMs: 4, textures: 0, textureMb: 0, textureMbSplit: { art: 0, text: 0, targets: 0, kept: 0, other: 0, idle: { targets: 0, kept: 0 } }, views: 1, pooled: 0, renderPasses: 1, renderPassesMax: 1, canvasPasses: 1, canvasPassesMax: 1, kept: { pictures: 0, mb: 0, retakes: 0, evicted: 0, refused: 0 } }
10079
10140
  * // The same frame in a dev build also counts the one sprite batch, and the one instruction build of the first
10080
10141
  * // frame: { ..., drawCalls: 1, redraws: 0, rebuilds: 1 }
10081
10142
  * app.renderer.stats(); // { fps: 120, drawn: 0, … }: a still board with onDemand
@@ -15126,16 +15187,22 @@ type BundleUsage = {
15126
15187
  lastUsed: number;
15127
15188
  };
15128
15189
  /**
15129
- * What `usage()` reports: the numbers a dev overlay and the tests read.
15190
+ * What `usage()` reports: the numbers a dev overlay and the tests read. `textureMb` is the cost of the loaded bundles
15191
+ * by the manifest (each bundle's `mb`), counted from the load on, drawn or not; the budget evicts by it. It is not GPU
15192
+ * memory: `renderer.stats().textureMb` is.
15130
15193
  *
15131
15194
  * @example
15132
15195
  * ```ts
15133
- * const report: Usage = { textureMb: 3.5, budgetMb: 192, bundles: [] };
15196
+ * const report: Usage = {
15197
+ * textureMb: 3.5,
15198
+ * budgetMb: 192,
15199
+ * bundles: [{ name: "board", tier: "scene", mb: 3.5, lastUsed: 12 }]
15200
+ * };
15134
15201
  * ```
15135
15202
  */
15136
15203
  type Usage = {
15137
- textureMb: number;
15138
- budgetMb: number;
15204
+ /** The manifest megabytes of the loaded bundles, from load on, drawn or not: what the budget evicts by. */textureMb: number; /** `textureBudgetMb` of the config. */
15205
+ budgetMb: number; /** One entry per loaded bundle, sorted by name. */
15139
15206
  bundles: readonly BundleUsage[];
15140
15207
  };
15141
15208
  /**
@@ -15338,7 +15405,9 @@ type Api = {
15338
15405
  */
15339
15406
  audio(key: string): AudioAsset | undefined;
15340
15407
  /**
15341
- * What the loaded bundles cost, sorted by name. `lastUsed` is the use counter, not a clock.
15408
+ * What the loaded bundles cost, sorted by name. `lastUsed` is the use counter, not a clock. `textureMb` is the
15409
+ * manifest cost of the loaded bundles, counted from the load on, drawn or not, and the budget evicts by it; it is not
15410
+ * GPU memory, which `renderer.stats().textureMb` gives.
15342
15411
  *
15343
15412
  * @returns The used and allowed megabytes and one entry per loaded bundle.
15344
15413
  * @example
@@ -1,7 +1,7 @@
1
- import { $ as Config$2, Hr as Config, Ir as ClockSource, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Un as TypeTag, Wr as Json, Xr as ProviderCall, Yr as PlayerStateProvider, Zr as SaveDoc, _t as Orientation, a as Config$3, d as Manifest, ei as SnapshotOf, gn as Config$1, it as PixiModule, n as AssetsIo } from "./types-D1xdKk_t.mjs";
2
- import { o as AudioContextLike, s as Config$4 } from "./types-D-vnlN3n.mjs";
3
- import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-Bl9jyah_.mjs";
4
- import { Rt as effectsPlugin, Vt as audioPlugin, i as screen, jt as PlatformProvider, kt as platformPlugin, t as createApp } from "./index-CVmEBBm5.mjs";
1
+ import { $ as Config$2, Hr as Config, Ir as ClockSource, Mn as FeaturePlugin, Pn as AnyFlow, Rr as FakeClock, Un as TypeTag, Wr as Json, Xr as ProviderCall, Yr as PlayerStateProvider, Zr as SaveDoc, _t as Orientation, a as Config$3, d as Manifest, ei as SnapshotOf, gn as Config$1, it as PixiModule, n as AssetsIo } from "./types-DTkhpupa.mjs";
2
+ import { o as AudioContextLike, s as Config$4 } from "./types-D8D2ZtEi.mjs";
3
+ import { J as StringTable, U as I18nApi, Y as TextKey } from "./types-CPiWOiSc.mjs";
4
+ import { Rt as effectsPlugin, Vt as audioPlugin, i as screen, jt as PlatformProvider, kt as platformPlugin, t as createApp } from "./index-CbMDaUan.mjs";
5
5
  import { AnyPluginInstance } from "@moku-labs/core";
6
6
 
7
7
  //#region src/plugins/model/store/providers/memory.d.ts
@@ -1,9 +1,9 @@
1
- import { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-D1xdKk_t.mjs";
2
- import { Y as AnimApi, r as UiApi } from "./types-D-vnlN3n.mjs";
3
- import { R as InputApi } from "./types-Bl9jyah_.mjs";
4
- import { r as Repro } from "./headless-DFkrIVO4.mjs";
5
- import { i as ControlApp, o as InputOf } from "./types-CM7Ng3EN.mjs";
6
- import { t as commands } from "./commands-CLhKYlot.mjs";
1
+ import { Ar as Api$1, Fr as Api$4, Q as Api, Vr as Api$2, ii as Api$3 } from "./types-DTkhpupa.mjs";
2
+ import { Y as AnimApi, r as UiApi } from "./types-D8D2ZtEi.mjs";
3
+ import { R as InputApi } from "./types-CPiWOiSc.mjs";
4
+ import { r as Repro } from "./headless-PANjNy6-.mjs";
5
+ import { i as ControlApp, o as InputOf } from "./types-BuN6rLDs.mjs";
6
+ import { t as commands } from "./commands-Gi8RMNnU.mjs";
7
7
 
8
8
  //#region src/visual/types.d.ts
9
9
  /** The base commands of the `/control` door, keyed by their short names. */
package/dist/visual.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as VisualApp, c as VisualRenderer, d as VisualStart, f as VisualStep, h as VisualTolerance, i as CheckpointResult, l as VisualReport, m as VisualTestResult, n as runVisualTests, o as VisualOptions, p as VisualTest, r as defineVisualTest, s as VisualPage, t as parseVisualArgv, u as VisualSetup } from "./visual-D_4mmn1u.mjs";
1
+ import { a as VisualApp, c as VisualRenderer, d as VisualStart, f as VisualStep, h as VisualTolerance, i as CheckpointResult, l as VisualReport, m as VisualTestResult, n as runVisualTests, o as VisualOptions, p as VisualTest, r as defineVisualTest, s as VisualPage, t as parseVisualArgv, u as VisualSetup } from "./visual-nAxiy1aK.mjs";
2
2
  export { type CheckpointResult, type VisualApp, type VisualOptions, type VisualPage, type VisualRenderer, type VisualReport, type VisualSetup, type VisualStart, type VisualStep, type VisualTest, type VisualTestResult, type VisualTolerance, defineVisualTest, parseVisualArgv, runVisualTests };
package/dist/visual.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as VISUAL_CLOCK } from "./fake-hnJcJeYf.mjs";
2
- import { n as read, t as sources } from "./sources-D9Fk3Z4d.mjs";
2
+ import { n as read, t as sources } from "./sources-DRP-bS6e.mjs";
3
3
  import { n as commands, t as run } from "./run-B4imG5Lu.mjs";
4
4
  import path from "node:path";
5
5
  import { createBrandConsole } from "@moku-labs/common/cli";
package/llms.txt CHANGED
@@ -583,7 +583,7 @@ The graph. Modules `runner`, `gate`, `inbox`, `fx`, `features`. Runner methods s
583
583
  - `Tappable({ intent, payload, point: true })`: a finger tap answers `{ intent, payload: { ...payload, point: { x, y } } }`, the press-down point in the view's own units (a ui `button` with `point`: (0, 0) its top-left corner); `app.input.tap(target, point?)` hands a point already in those units to a flagged view. No `point` key without the flag, without a point (Enter, Escape, `tap(target)`) or on a long press; `point` absent by default, so a `Tappable` serialises as before. Type: `TapValue` (the component's value, `IntentValue & { point?: true }`).
584
584
  - `Draggable({ payload, carry?, aim? })`: `aim: { x, y }`, a point of the view in its own units, moves the hover and the drop lookup from the finger to that point of the view in the hand; `null` (default) is the finger.
585
585
  - `pluginConfigs.renderer.onDemand: true` draws a frame only when something visible changed (a written view, a filter value, a resize, a wake, a capture); `app.renderer.stats().drawn` is the frames drawn per second (`fps` without it); a game that writes into its own `Display` object calls `app.renderer.invalidate(entity)` before the write; `renderer.sync.debug.verifyFrames(true)` (dev/debug) checks skipped frames by pixels and logs `renderer:missed-frame`; a dev build warns `renderer:missed-mark` for a write without the call.
586
- - `app.renderer.stats()` adds `textureMbSplit: { art, targets, kept }` (MiB). `app.renderer.host.resolution()` is the resolution drawn at: `override ?? min(devicePixelRatio, maxResolution)`; `maxResolution` is a number (default 2), a change of `devicePixelRatio` is followed from the next frame, and `app.renderer.monitor.setResolution(n | undefined)` overrides it in every build, the way to apply a player's graphics setting from an effect (0.5 to 4, else a `RangeError`).
586
+ - `app.renderer.stats()` adds `textureMbSplit: { art, text, targets, kept, other, idle: { targets, kept } }` (MiB, 2 decimals, 0 while inert): art is what `sync.textures.create` made, text the font pages of `sync.fonts.install`, targets the render targets, kept the pictures the engine keeps, other the rest (what Pixi made itself); the five add up to `textureMb`, and `idle` is the share of targets and kept waiting in a pool. `app.renderer.host.resolution()` is the resolution drawn at: `override ?? min(devicePixelRatio, maxResolution)`; `maxResolution` is a number (default 2), a change of `devicePixelRatio` is followed from the next frame, and `app.renderer.monitor.setResolution(n | undefined)` overrides it in every build, the way to apply a player's graphics setting from an effect (0.5 to 4, else a `RangeError`).
587
587
  - `app.renderer.monitor` (agent builds; nothing otherwise): `stream(listener)` the performance log, one frozen JSON line at a time (`PerfLogLine`, `v` = `PERF_LOG_VERSION` = 1, `t` page epoch ms, `build`): `header`, `startup`, a `sample` a second, `spike` (a frame over its budget, with its passes, GPU time, systems, compiles, filters per kind, long frames), `longFrame`, `event`, `mark`, `thermal`; `frames()` the frame ring (typed-array columns, `read(into, cursor)` copies without allocating; `frameAt(ring, age)` gives one record); `mark(label)`; `event(name, detail?)`; `beginAgent()`/`endAgent()` for engine plugins. Config `renderer.monitor: { budgetMs: "rate", frames: 1024 }`: `"rate"` makes the spike budget one frame of the frame's rate (8.33 ms at 120 fps, 16.7 at 60). The engine sends nothing anywhere. The types of the log and of its ring are exported from the root for tools that read it: `PerfLogLine` and its lines `PerfHeaderLine`, `PerfStartupLine`, `PerfSampleLine`, `PerfSpikeLine`, `PerfLongFrameLine`, `PerfEventLine`, `PerfMarkLine`, `PerfThermalLine`, `PerfCollectorLine`, with `PerfEventName`, `PerfChange`, `PerfChangeEntry`, `PerfCause`, `PerfDisplay`, `PerfMeasured`, `LongFrameEntry`, `PassKind`, `PassRecord`, `ProblemRule`, `ShaderWhat`, `OverlayWhat`, `OverlayEventDetail`, `PoolTrimDetail`, `WarmDetail`; the ring `FrameRing`, `FrameRecord`, `FrameColumns`, `FrameReadout`, `FrameReadResult`; the sections `MonitorSections`, `MonitorCounts`, `MonitorConfig`; and the constant lists `PERF_CAUSES` (bit order of the `causes` column), `PERF_GAP_BUCKETS`, `MONITOR_SECTIONS` and `DEMAND_REASONS` (the `reason` column's index into it).
588
588
  - The telemetry of a debug build (0.15, PerfLog still `v: 1`, every field additive): the header carries `app: { id }` (`__MOKU_GAME_APP__`, `"com.mokulabs.timber.debug"` in a native debug build, else `null`) and `debug: { overdraw }`. The pass ring (`frames().passes`) gains `owner` (the entity whose filter drew the pass, 0 none), `kind2` (the filter kind, 1-based: `frames().kindNames[kind2 - 1]`, 0 none), `drawsAt` (the frame's draws when the pass began; WebGPU), `format` and `resolution` of its target; `frames().systemNames` names `sysIdx` (a new array when a system registers). A spike's `passes[]` add `owner`, `view` (the owner's view label), `filter`, `draws`, `format`, `resolution`, `kept`. Root exports `PASS_KINDS` (`passes.kind` by index), `SHADER_WHATS`, `PROBLEM_RULES`, types `ShaderEventDetail`, `ProblemEventDetail`, `PerfCounts`. Event `shader` `{ what: "compile" | "module", label, ms, frame, boot, during: { pass, filter, owner, view } }`, one per pipeline or shader module, written at the flush, boot compiles included (`boot: true`); the old `compile { frame, count }` stays. Event `problem` once per crossing, judged once a second: `filter-still` (a filtered view the kept cache does not keep stood still `stillFrames` drawn frames, filtered in every one over `stillMpx`; `reason: "budget" | "not-eligible"`), `target-churn` (render targets made and dropped `churnPerSecond` a second for `churnSeconds`, or made while idle, or within `churnAfterTrimMs` after a pool trim; `reason: "rate" | "idle" | "after-trim"`), `retakes` (a kept view taken again 3 times in 2 s; `value` per second); `{ rule, cleared: true, owner, view }` when it stops. Thresholds are flat keys of `renderer.monitor`: `stillFrames: 60, stillMpx: 0.25, churnPerSecond: 4, churnSeconds: 3, churnAfterTrimMs: 1000`. A `sample` adds `counts: { entities, views, timers, frameListeners, clockListeners, …registered }` (`timers` = `clock.pending()`; input registers `inputListeners`) and `targets: { created, destroyed }` (WebGPU, else `null`); `stats().counts` reads the same. `monitor.counts.register(name, read)` adds a count (agent builds; at most 16, the 17th throws `[game] Monitor count table is full (16).`; the renderer's `onStop` drops them). Event `debug { overdraw }` marks the overdraw switch. The editor's collector writes `telemetry` and `gap` lines into its copy of a log (`PerfTelemetryLine`, `PerfGapLine`); the engine never does.
589
589
  - Overdraw heat map (dev and debug builds): `app.renderer.sync.debug.overdraw(true)` (or `game.debug { overdraw: true }`) draws every frame so a pixel's brightness counts the layers drawn there: 1/16 white a layer, white at sixteen. While on, every frame is drawn (also with `onDemand`), kept pictures draw live and filters are off; only the stage pass changes, the tree between frames stays the game's, and off draws the game again from the next frame. Texels a texture leaves transparent count nothing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moku-labs/game",
3
- "version": "0.15.160",
3
+ "version": "0.15.162",
4
4
  "description": "2D puzzle game engine on TypeScript and PixiJS, built on @moku-labs/core.",
5
5
  "type": "module",
6
6
  "sideEffects": [