What problem does it solve?
This Skill addresses the critical need to manage and optimize the performance of 3D scenes within the Myelin simulator, ensuring a smooth and usable learner experience on target hardware by adhering to strict performance budgets.
Core Features & Use Cases
- Performance Budgeting: Defines authoritative face counts, texture resolutions, and memory ceilings for scene geometry, LODs, and textures.
- Adaptive Quality: Supports multiple quality tiers (MINIMUM, HD, HD_PLUS, UHD) with adaptive downgrading logic.
- LOD System: Provides guidelines for implementing Level of Detail (LOD) for objects using Three.js
LOD objects.
- Instancing & Culling: Details the use of
THREE.InstancedMesh for repeated geometry and emphasizes the importance of frustum culling.
- Asset Loading Strategy: Outlines a two-phase loading approach for faster scene startup.
- Use Case: When creating or modifying any 3D assets for the Myelin simulator, use this skill to ensure all geometry, textures, and LODs comply with the defined performance budgets, preventing frame rate drops and ensuring the application remains responsive.
Quick Start
Load this skill before writing any geometry, LOD, or instancing code to ensure adherence to performance budgets.