feat: bump immersive visualizer to 60fps
Was hardcoded at 15fps (not the 30fps from config). Updated both the canvas frame throttle and the default config to 60fps.
This commit is contained in:
2 files changed
+3
-4
No files matched your search
@@ -80,9 +80,8 @@
|
|||||||
let lastFrameTime = 0;
|
let lastFrameTime = 0;
|
||||||
let isVisible = true;
|
let isVisible = true;
|
||||||
|
|
||||||
// Frame throttling for power efficiency
|
// Frame throttling
|
||||||
// 15fps is enough for slow ambient motion, saves significant CPU
|
const TARGET_FPS = 60;
|
||||||
const TARGET_FPS = 15;
|
|
||||||
const FRAME_INTERVAL = 1000 / TARGET_FPS;
|
const FRAME_INTERVAL = 1000 / TARGET_FPS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export interface ImmersiveConfig {
|
|||||||
|
|
||||||
/** Default configuration */
|
/** Default configuration */
|
||||||
export const DEFAULT_IMMERSIVE_CONFIG: ImmersiveConfig = {
|
export const DEFAULT_IMMERSIVE_CONFIG: ImmersiveConfig = {
|
||||||
targetFps: 30,
|
targetFps: 60,
|
||||||
ambientIntensity: 1.0, // Full intensity for maximum ambient motion
|
ambientIntensity: 1.0, // Full intensity for maximum ambient motion
|
||||||
pauseWhenHidden: true,
|
pauseWhenHidden: true,
|
||||||
debugOverlay: false,
|
debugOverlay: false,
|
||||||
|
|||||||
Reference in new issue
Block a user