@threenative/runtime-native 0.3.12 → 0.3.13

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.
@@ -346,6 +346,8 @@ public class MystralActivity extends SDLActivity {
346
346
  // that carries no metadata runs one mode while the host reports the other.
347
347
  String backgroundMode = metadata == null ? "pause" : metadata.getString("TN_BACKGROUND_MODE", "pause");
348
348
  int maxFps = metadata == null ? 60 : metadata.getInt("TN_MAX_FPS", 60);
349
+ // `display.priority` (PRD-859): "game" raises the game thread and lowers the rest; "normal" keeps the OS default.
350
+ String priority = metadata == null ? "game" : metadata.getString("TN_PRIORITY", "game");
349
351
  // Ask Android to provision the app-owned external directory before honoring a runner-
350
352
  // supplied path beneath it. Creating /sdcard/Android/data/<package> directly is rejected
351
353
  // by scoped storage on a clean install, even though a later app-owned child is writable.
@@ -376,7 +378,8 @@ public class MystralActivity extends SDLActivity {
376
378
  Integer.toString(maxFps),
377
379
  cssUiRoot,
378
380
  fixedStepMs == null ? "" : fixedStepMs,
379
- stateTrace == null ? "" : stateTrace
381
+ stateTrace == null ? "" : stateTrace,
382
+ priority == null ? "game" : priority
380
383
  };
381
384
  }
382
385