@bendyline/molen-client 0.0.13 → 0.0.16
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.
- package/README.md +1 -1
- package/dist/aircraft.d.mts +10 -2
- package/dist/aircraft.mjs +570 -9
- package/dist/camera-track.d.mts +1 -1
- package/dist/index.d.mts +40 -3
- package/dist/index.mjs +850 -116
- package/dist/{input-BliZYUY1.mjs → input-CzlS1f2N.mjs} +5 -3
- package/dist/instance-batch-Ds-oKQW4.mjs +222 -0
- package/dist/instancing.d.mts +2 -0
- package/dist/instancing.mjs +3 -0
- package/dist/markers.d.mts +8 -0
- package/dist/markers.mjs +9 -2
- package/dist/navigation.d.mts +12 -3
- package/dist/navigation.mjs +25 -7
- package/dist/render-bounds-B4yQoiYR.d.mts +126 -0
- package/dist/render-bounds-uRp_yPp6.mjs +151 -0
- package/dist/{renderer-DAk7C8jH.d.mts → renderer-Scr1Mz0g.d.mts} +187 -7
- package/dist/snow-cover-Bh0woabf.mjs +218 -0
- package/dist/snow-cover-tEG1uO98.d.mts +67 -0
- package/dist/snow.d.mts +2 -0
- package/dist/snow.mjs +2 -0
- package/dist/{vehicle-interior-DJ4cXTsQ.mjs → vehicle-interior-CNLLi38s.mjs} +9 -1
- package/dist/vehicle-interior-XC2tAySI.d.mts +232 -0
- package/dist/vehicles.d.mts +43 -3
- package/dist/vehicles.mjs +594 -5
- package/dist/{webgpu-clouds-H03g7ID1.mjs → webgpu-clouds-DwSBoV8A.mjs} +15 -11
- package/dist/{webgpu-driver-BQnmPRqs.mjs → webgpu-driver-YWVTLOY7.mjs} +103 -4
- package/dist/webgpu-snow-cover-CiqYhvPq.mjs +55 -0
- package/package.json +11 -3
- package/dist/vehicle-interior-B8TpzTAx.d.mts +0 -56
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { a as readModelSignals, n as ModelSignals, r as createModelSignalVisual, t as ModelSignalVisual } from "./model-signals-BpeXhsim.mjs";
|
|
2
2
|
import { a as createUrlAssetProvider, i as UrlAssetProviderOptions, n as AssetProvider, r as LoadedGltf, t as AssetCache } from "./assets-IbO4GJpF.mjs";
|
|
3
|
-
import { A as
|
|
3
|
+
import { A as SkyReflectionFilter, B as SceneAdmission, C as SkyVisualOptions, D as evaluateEarthSky, E as EarthSkyState, F as AdmissionBacklog, I as AdmissionOptions, L as AdmissionSample, M as SkyReflections, N as createWebGlSkyReflectionFilter, O as skyTimeMs, P as reflectionStateFromLights, R as FrameAdmissionOptions, S as SkyVisual, T as CelestialPosition, _ as WeatherVisual, a as RendererBackendPreference, b as SkyFrame, c as TopDownOrtho, d as ShadowFocus, f as ShadowQuality, g as FarShadowInfo, h as createGpuFrameTimer, i as RendererBackend, j as SkyReflectionState, k as starDirection, l as nextWorldOrigin, m as GpuFrameTimerOptions, n as CameraPose, o as RendererOptions, p as GpuFrameTimer, r as Renderer, s as ThreeRenderer, t as AutoWorldOriginOptions, u as orthoFrustum, v as WeatherVisualOptions, w as defaultSkyPalette, x as SkyStar, y as CloudQuality, z as FrameAdmissionQueue } from "./renderer-Scr1Mz0g.mjs";
|
|
4
4
|
import { a as normalizeInputAxis, i as InputMapOptions, n as InputGamepad, o as resolveAction, r as InputMap, t as InputBindings } from "./input-Ckev_Kvj.mjs";
|
|
5
|
+
import { a as expandRenderBounds, c as INSTANCE_BATCH_COLOR, d as InstanceMatrixAttribute, f as isInstanceBatch, i as boxOutsideView, l as INSTANCE_BATCH_MATRIX_COLUMNS, n as RENDER_BOUNDS_STALE, o as markRenderBoundsChanged, p as isInstanceBatchGeometry, r as RENDER_MATRICES_STALE, s as viewProjection, t as RENDER_BOUNDS, u as InstanceBatch } from "./render-bounds-B4yQoiYR.mjs";
|
|
5
6
|
import { CloudType, Command, ControlAction, CustomSkyData, Delta, DiagMessage, EarthObserver, EarthSkyData, EngineEvent, EntityId, GlassData, GlassStateData, JsonObject, JsonValue, Keyframe, LiveryData, LiveryGraphic, MessageLink, ModelSignalSpec, Quat, ResolvedWeather, SceneCamera, SceneInput, SceneManifest, SkyAppearance, SkyBodyData, SkyData, SkyData as SkyData$1, SkyPalette, SkyTime, Vec3, WeatherData, WeatherProfile, resolveWeather, weatherProfile } from "@bendyline/molen-schema";
|
|
6
7
|
import * as THREE from "three";
|
|
7
8
|
import { Intersection, Object3D } from "three";
|
|
@@ -26,6 +27,19 @@ interface AdaptiveQualityOptions {
|
|
|
26
27
|
cooldownMs?: number;
|
|
27
28
|
/** An isolated longer interval is treated as a pause; repeated ones remain overload. */
|
|
28
29
|
pauseFrameMs?: number;
|
|
30
|
+
/**
|
|
31
|
+
* A second isolated pause within this much measured time of the last one is a stall, not a
|
|
32
|
+
* tab resume, and lowers detail (default 60 s). The first is still ignored.
|
|
33
|
+
*/
|
|
34
|
+
pauseRepeatMs?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Measured frame work must stay under this share of the target before detail goes up
|
|
37
|
+
* (default 0.9). A step up costs more than the level it leaves, so a host whose levels differ
|
|
38
|
+
* a lot in cost sets it lower: at 0.9 a frame using 15 of its 16.7 ms counted as headroom.
|
|
39
|
+
*/
|
|
40
|
+
upgradeWorkFraction?: number;
|
|
41
|
+
/** Sustained `strained` samples before stepping down (default 10 s). */
|
|
42
|
+
strainDelayMs?: number;
|
|
29
43
|
}
|
|
30
44
|
interface AdaptiveQualitySample {
|
|
31
45
|
/** False while hidden, suspended, or deliberately not rendering. Resets measurement history. */
|
|
@@ -42,8 +56,24 @@ interface AdaptiveQualitySample {
|
|
|
42
56
|
gpuFrameMs?: number;
|
|
43
57
|
/** Estimated resident working set / memory budget. Values above one lower detail. */
|
|
44
58
|
memoryPressure?: number;
|
|
59
|
+
/**
|
|
60
|
+
* The host's view is still arriving (a first mount, a jump to a new place): slow frames and
|
|
61
|
+
* stalls are that arrival, not the level's cost. A step now would rebuild what is half loaded at
|
|
62
|
+
* another level and start the wait again, so frame time neither lowers nor raises detail while
|
|
63
|
+
* it is set; memory pressure, and measured GPU time over twice the frame budget, still lower it. Hosts clear it once the view has loaded, or after
|
|
64
|
+
* a bound of their own, so a device that cannot afford the level still steps down afterwards.
|
|
65
|
+
*/
|
|
66
|
+
settling?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* The level asks for more than streaming can hold or deliver, by the host's own measure: tiles
|
|
69
|
+
* rebuilt after eviction, a view that crowds its cache. Frame times do not show this (the work
|
|
70
|
+
* runs outside the frame), so a level can look affordable while it never finishes loading.
|
|
71
|
+
* Blocks upgrades at once and lowers detail when sustained (`strainDelayMs`). Report only strain
|
|
72
|
+
* the level causes: a slow network strains every level alike, and stepping down would not help.
|
|
73
|
+
*/
|
|
74
|
+
strained?: boolean;
|
|
45
75
|
}
|
|
46
|
-
type AdaptiveQualityReason = "frame-time" | "memory-pressure" | "headroom" | "manual";
|
|
76
|
+
type AdaptiveQualityReason = "frame-time" | "memory-pressure" | "streaming" | "headroom" | "manual";
|
|
47
77
|
interface AdaptiveQualityChange {
|
|
48
78
|
previousLevel: number;
|
|
49
79
|
level: number;
|
|
@@ -78,6 +108,12 @@ declare class AdaptiveQualityController {
|
|
|
78
108
|
private readonly increaseDelayMs;
|
|
79
109
|
private readonly cooldownMs;
|
|
80
110
|
private readonly pauseFrameMs;
|
|
111
|
+
private readonly pauseRepeatMs;
|
|
112
|
+
private readonly upgradeWorkFraction;
|
|
113
|
+
private readonly strainDelayMs;
|
|
114
|
+
private lastPauseMs;
|
|
115
|
+
private strained;
|
|
116
|
+
private strainMs;
|
|
81
117
|
private readonly frames;
|
|
82
118
|
private frameCursor;
|
|
83
119
|
private clockMs;
|
|
@@ -87,6 +123,7 @@ declare class AdaptiveQualityController {
|
|
|
87
123
|
private overloadMs;
|
|
88
124
|
private headroomMs;
|
|
89
125
|
private loading;
|
|
126
|
+
private settling;
|
|
90
127
|
private cpuTotalMs;
|
|
91
128
|
private cpuSamples;
|
|
92
129
|
private gpuTotalMs;
|
|
@@ -881,4 +918,4 @@ declare const defaultEnvironment: EnvironmentData;
|
|
|
881
918
|
*/
|
|
882
919
|
declare function applyEnvironment(renderer: Renderer, env: EnvironmentData): void;
|
|
883
920
|
//#endregion
|
|
884
|
-
export { type AdaptiveQualityChange, AdaptiveQualityController, type AdaptiveQualityOptions, type AdaptiveQualityReason, type AdaptiveQualitySample, type AdaptiveQualityStats, type AdmissionOptions, type AdmissionSample, AssetCache, type AssetOptions, type AssetProvider, type AutoWorldOriginOptions, type CameraPose, type CameraTarget, type CelestialPosition, type ClientCore, type ClientCoreOptions, type ClientDiagCode, type ClientError, type ClientOptions, type CloudQuality, type CloudType, type CustomSkyData, type DecoderConfig, type EarthObserver, type EarthSkyData, type EarthSkyState, type EnvironmentData, type FrameAdmissionOptions, FrameAdmissionQueue, type GpuFrameTimer, type GpuFrameTimerOptions, type InputBindings, type InputGamepad, InputMap, type InputMapOptions, type InputRuleOptions, type InterpTransform, InterpolationBuffer, type KindContext, type KindHandle, type KindView, type LightData, type LiveryVisual, type LoadedGltf, MaterialResolver, type MirrorReader, type ModelSignalVisual, type ModelSignals, type MolenClient, type MountExperienceOptions, type MountedExperience, type Renderable, type RenderableKind, Renderer, type RendererBackend, type RendererBackendPreference, type RendererOptions, type ResolvedWeather, type SceneAdmission, type SceneBackend, SceneMirror, type SceneOptimizationOptions, type ShadowFocus, type ShadowQuality, type SkyAppearance, type SkyBodyData, type SkyData, type SkyFrame, type SkyPalette, type SkyReflectionFilter, type SkyReflectionState, SkyReflections, type SkyStar, type SkyTime, SkyVisual, type SkyVisualOptions, type StarCatalogRow, type StaticBatchOptions, THREE, type ThreeRenderer, ThreeSceneBackend, type TopDownOrtho, type Unsubscribe, type UrlAssetProviderOptions, type WeatherData, type WeatherProfile, WeatherVisual, type WeatherVisualOptions, applyEnvironment, applyInputRules, applyLivery, applySceneCamera, computeClipTime, createClient, createClientCore, createGltfLoader, createGpuFrameTimer, createIndexedDbMaterialStore, createModelSignalVisual, createSnapshotViewer, createUrlAssetProvider, createViewer, createWebGlSkyReflectionFilter, decodeStarCatalog, decodeStarCatalogRows, defaultEnvironment, defaultSkyPalette, encodeStarCatalog, evaluateEarthSky, followCameraPose, lerp3, liveryGraphicTexture, localCommand, materialFromBaked, mountExperience, nextWorldOrigin, nlerp4, normalizeInputAxis, observePageActivity, orthoFrustum, readModelSignals, reflectionStateFromLights, resolveAction, resolveWeather, skyTimeMs, starDirection, weatherProfile };
|
|
921
|
+
export { type AdaptiveQualityChange, AdaptiveQualityController, type AdaptiveQualityOptions, type AdaptiveQualityReason, type AdaptiveQualitySample, type AdaptiveQualityStats, type AdmissionBacklog, type AdmissionOptions, type AdmissionSample, AssetCache, type AssetOptions, type AssetProvider, type AutoWorldOriginOptions, type CameraPose, type CameraTarget, type CelestialPosition, type ClientCore, type ClientCoreOptions, type ClientDiagCode, type ClientError, type ClientOptions, type CloudQuality, type CloudType, type CustomSkyData, type DecoderConfig, type EarthObserver, type EarthSkyData, type EarthSkyState, type EnvironmentData, type FarShadowInfo, type FrameAdmissionOptions, FrameAdmissionQueue, type GpuFrameTimer, type GpuFrameTimerOptions, INSTANCE_BATCH_COLOR, INSTANCE_BATCH_MATRIX_COLUMNS, type InputBindings, type InputGamepad, InputMap, type InputMapOptions, type InputRuleOptions, InstanceBatch, InstanceMatrixAttribute, type InterpTransform, InterpolationBuffer, type KindContext, type KindHandle, type KindView, type LightData, type LiveryVisual, type LoadedGltf, MaterialResolver, type MirrorReader, type ModelSignalVisual, type ModelSignals, type MolenClient, type MountExperienceOptions, type MountedExperience, RENDER_BOUNDS, RENDER_BOUNDS_STALE, RENDER_MATRICES_STALE, type Renderable, type RenderableKind, Renderer, type RendererBackend, type RendererBackendPreference, type RendererOptions, type ResolvedWeather, type SceneAdmission, type SceneBackend, SceneMirror, type SceneOptimizationOptions, type ShadowFocus, type ShadowQuality, type SkyAppearance, type SkyBodyData, type SkyData, type SkyFrame, type SkyPalette, type SkyReflectionFilter, type SkyReflectionState, SkyReflections, type SkyStar, type SkyTime, SkyVisual, type SkyVisualOptions, type StarCatalogRow, type StaticBatchOptions, THREE, type ThreeRenderer, ThreeSceneBackend, type TopDownOrtho, type Unsubscribe, type UrlAssetProviderOptions, type WeatherData, type WeatherProfile, WeatherVisual, type WeatherVisualOptions, applyEnvironment, applyInputRules, applyLivery, applySceneCamera, boxOutsideView, computeClipTime, createClient, createClientCore, createGltfLoader, createGpuFrameTimer, createIndexedDbMaterialStore, createModelSignalVisual, createSnapshotViewer, createUrlAssetProvider, createViewer, createWebGlSkyReflectionFilter, decodeStarCatalog, decodeStarCatalogRows, defaultEnvironment, defaultSkyPalette, encodeStarCatalog, evaluateEarthSky, expandRenderBounds, followCameraPose, isInstanceBatch, isInstanceBatchGeometry, lerp3, liveryGraphicTexture, localCommand, markRenderBoundsChanged, materialFromBaked, mountExperience, nextWorldOrigin, nlerp4, normalizeInputAxis, observePageActivity, orthoFrustum, readModelSignals, reflectionStateFromLights, resolveAction, resolveWeather, skyTimeMs, starDirection, viewProjection, weatherProfile };
|