Phase 29 — Map Toggles #20
@@ -227,9 +227,18 @@ preference the store already manages.
|
|||||||
const sameSnapshot =
|
const sameSnapshot =
|
||||||
mountedTurn === report.turn &&
|
mountedTurn === report.turn &&
|
||||||
mountedGameId === gameId &&
|
mountedGameId === gameId &&
|
||||||
handle !== null &&
|
handle !== null;
|
||||||
handle.getMode() === mode;
|
|
||||||
if (sameSnapshot) {
|
if (sameSnapshot) {
|
||||||
|
// Apply wrap-mode flips in-place via the renderer's own
|
||||||
|
// `setMode` — a full re-mount is unnecessary (the world,
|
||||||
|
// primitives, and camera are unchanged) and Pixi 8 does
|
||||||
|
// not reliably re-init on the same canvas (the symptom is
|
||||||
|
// a crashed tab when the wrap-mode radio fires).
|
||||||
|
if (handle !== null && handle.getMode() !== mode) {
|
||||||
|
untrack(() => {
|
||||||
|
handle?.setMode(mode);
|
||||||
|
});
|
||||||
|
}
|
||||||
// Always re-apply hide set + fog on a same-snapshot pass:
|
// Always re-apply hide set + fog on a same-snapshot pass:
|
||||||
// toggle flips bypass the extras fingerprint when they
|
// toggle flips bypass the extras fingerprint when they
|
||||||
// only change which baked-world primitives are hidden,
|
// only change which baked-world primitives are hidden,
|
||||||
|
|||||||
Reference in New Issue
Block a user