Skip to content

Commit c097d2f

Browse files
sbryngelsonclaude
andcommitted
Enhance interactive 3D viz: overlays, server-side rendering, fast playback
Major interactive visualization improvements: **New features:** - Contour overlays (2D/3D), isosurface/isovolume mixing - Solid color isosurfaces, opacity control, improved timestep slider - Server-side rendering via kaleido on Linux for fast 3D playback over SSH **Playback performance:** - Aggressive data prefetch: 3 workers, 15 steps ahead, 40-entry cache - 3D mesh prefetch: 3 workers, 50K cell budget during playback - Force Dash patch path during playback to avoid full re-renders - Prefetch keeps cache warm so playback hits ~0.002s/frame **Dependencies:** - Add kaleido for server-side Plotly figure rendering (Linux SSH) - Remove pyvista (replaced by kaleido) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 598f5a5 commit c097d2f

File tree

3 files changed

+959
-84
lines changed

3 files changed

+959
-84
lines changed

toolchain/mfc/viz/_step_cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
logger = logging.getLogger(__name__)
3030

31-
CACHE_MAX: int = 20
31+
CACHE_MAX: int = 40
3232
_cache: dict = {}
3333
_cache_order: list = []
3434
_in_flight: set = set() # steps currently being prefetched
@@ -44,7 +44,7 @@ def _get_prefetch_pool() -> ThreadPoolExecutor:
4444
with _prefetch_pool_lock:
4545
if _prefetch_pool is None:
4646
_prefetch_pool = ThreadPoolExecutor(
47-
max_workers=1, thread_name_prefix='mfc_prefetch')
47+
max_workers=3, thread_name_prefix='mfc_prefetch')
4848
atexit.register(_prefetch_pool.shutdown, wait=False)
4949
return _prefetch_pool
5050

0 commit comments

Comments
 (0)