Skip to content

fix(visualizer): fix map stutter/disappearance and resolve settings layout squishing#1

Open
lazyshrey wants to merge 1 commit into
kewonit:mainfrom
lazyshrey:main
Open

fix(visualizer): fix map stutter/disappearance and resolve settings layout squishing#1
lazyshrey wants to merge 1 commit into
kewonit:mainfrom
lazyshrey:main

Conversation

@lazyshrey

Copy link
Copy Markdown

Description

This PR resolves performance, interaction, and layout issues in the visualizer:

  1. Map Stutter/Freeze: Removed the redundant idle animation pausing loop which was freezing OrbitControls interaction during inactivity.
  2. Map Disappearance/Restart: Kept the map mounted during window focus changes and tab switches. Replaced WebGL context destruction with browser-native page visibility throttling.
  3. Packet Flow Animation Persistence: Kept the loaded cable data and matching grid cached on window focus change to prevent packet animations on paths from disappearing upon return.
  4. Settings Layout Squishing: Added flexbox shrink-0 bounds to settings cards to prevent them from shrinking into distorted "capsule" shapes under small viewports.

Before:

Screenshot 2026-06-13 195116

After

image

…d resolve settings layout squishing

- Remove manual Globe.gl animation pausing/resuming on store visibility changes to prevent interaction stuttering and camera jumps.
- Keep the NetworkMap component mounted in App.tsx to avoid destroying and recreating the WebGL context on focus changes.
- Retain the loaded cable paths cache and spatial index grid to prevent matching failure on visibility change.
- Add 'shrink-0' to TopBar settings cards to prevent vertical layout squishing in the dialog.
- Embed the earth-night texture locally to bypass CORS/CSP blocks in the Tauri environment.
@lazyshrey

Copy link
Copy Markdown
Author

i just wanted to try out this project but the build did not seem to work on my windows machine so i made some little changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant