Release Healer Man 0.1.9
This commit is contained in:
1 parent
c245a199b6
commit
d060296ade
74 files changed
+5901
-334
No files matched your search
@@ -1,5 +1,6 @@
|
||||
import type { DungeonId } from "../game/dungeonRegistry";
|
||||
import type { Frameloop } from "@react-three/fiber";
|
||||
import type { GameplayFrameRateLimit } from "../game/frameRateSettings";
|
||||
|
||||
/**
|
||||
* Encounter transitions must never remount the Canvas: R3F intentionally loses
|
||||
@@ -41,10 +42,14 @@ export function sceneFrameLoop(options: {
|
||||
readonly paused: boolean;
|
||||
readonly mapOpen: boolean;
|
||||
readonly companionOpen: boolean;
|
||||
readonly documentVisible: boolean;
|
||||
readonly frameRateLimit: GameplayFrameRateLimit;
|
||||
}): Frameloop {
|
||||
if (!options.documentVisible && !options.sharedOnline) return "demand";
|
||||
const locallyPaused = options.worldReady
|
||||
&& !options.graphicsRecovering
|
||||
&& !options.sharedOnline
|
||||
&& (options.paused || options.mapOpen || options.companionOpen);
|
||||
return locallyPaused ? "demand" : "always";
|
||||
if (locallyPaused) return "demand";
|
||||
return options.frameRateLimit === "display" ? "always" : "never";
|
||||
}
|
||||
Reference in new issue
Block a user