PerformanceMonitor - Voxel-3D 성능 모니터
렌더링 성능을 실시간으로 측정하고 추적합니다.
const monitor = new PerformanceMonitor({ autoStart: true });monitor.setRenderer(renderer);// 렌더 루프에서 호출function animate() { requestAnimationFrame(animate); monitor.update(); renderer.render(scene, camera);}// 메트릭 subscriptionsmonitor.onUpdate((metrics) => { console.log(`FPS: ${metrics.frame.fps}`);}); Copy
const monitor = new PerformanceMonitor({ autoStart: true });monitor.setRenderer(renderer);// 렌더 루프에서 호출function animate() { requestAnimationFrame(animate); monitor.update(); renderer.render(scene, camera);}// 메트릭 subscriptionsmonitor.onUpdate((metrics) => { console.log(`FPS: ${metrics.frame.fps}`);});
모니터링 실행 중 여부
현재 메트릭
모니터링 시작
모니터링 중지
메트릭 initialization
Three.js 렌더러 config
frame update (렌더 루프에서 호출)
메트릭 업데이트 handlers 등록
unsubscribe 함수
성능 경고 handlers 등록
포맷된 메트릭 문자열
메트릭 history 내보내기
리소스 cleanup
PerformanceMonitor - Voxel-3D 성능 모니터
렌더링 성능을 실시간으로 측정하고 추적합니다.
Remarks
Example