senza-sdk 4.5.5 → 4.5.6
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/package.json
CHANGED
|
@@ -66,8 +66,13 @@ class BackgroundRenderControl {
|
|
|
66
66
|
|
|
67
67
|
_init() {
|
|
68
68
|
if (this._initialized) return;
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
const sessionInfoObj = sessionInfo?.sessionInfoObj;
|
|
70
|
+
const explicitEnabled = sessionInfoObj?.settings?.["ui-streamer"]?.throttleRenderingInBackground?.enabled;
|
|
71
|
+
const profile = sessionInfoObj?.profile ?? "";
|
|
72
|
+
const isRemoteGpuProfile = typeof profile === "string" && profile.startsWith("remote-gpu");
|
|
73
|
+
// An explicit setting always wins; otherwise auto-enable for remote-gpu profiles.
|
|
74
|
+
this._enabled = explicitEnabled ?? isRemoteGpuProfile;
|
|
75
|
+
sdkLogger.log(`Initializing BackgroundRenderControl: enabled=${this._enabled} (profile=${profile}, explicit=${explicitEnabled})`);
|
|
71
76
|
if (!this._enabled) return;
|
|
72
77
|
this._lastState = lifecycle.state;
|
|
73
78
|
lifecycle.addEventListener("onstatechange", this._listener);
|
package/src/interface/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "4.5.
|
|
1
|
+
export const version = "4.5.6";
|