too
This commit is contained in:
parent
4fdc567e08
commit
e00bfd8879
51 changed files with 1203 additions and 833 deletions
|
|
@ -90,10 +90,10 @@
|
|||
if (hardRealtimeUrgent) return { interval: 0, lane: "urgent", smoothMotion: false, visible: isVisible, urgent: true };
|
||||
|
||||
// Panic movement must stay visually continuous, but the full creature
|
||||
// pipeline does not need to run every rendered frame. Treat panic/flee as
|
||||
// pipeline does not need to run every rendered frame. Treat panic as
|
||||
// a high-priority motion lane: AI/timers are quantized, motion-only still
|
||||
// runs on visible skipped frames.
|
||||
const panicUrgent = (tarinai.fearTimer || 0) > 0.20 || /panic|flee/i.test(id);
|
||||
const panicUrgent = (tarinai.fearTimer || 0) > 0.20 || /panic/i.test(id);
|
||||
if (panicUrgent) {
|
||||
const interval = isVisible ? (mobile ? 0.13 : (tier === "low" ? 0.12 : 0.08)) : (isNear ? (mobile ? 0.24 : 0.18) : (mobile ? 0.46 : 0.36));
|
||||
return { interval, lane: "panic", smoothMotion: Boolean(isVisible && !worldRef.isTarinaiHiddenInNestBox?.(tarinai)), visible: isVisible, urgent: true };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue