fix: GPU 모드 성능 저하(Layer Explosion) 해결 및 실험 변별력 확보#6
Merged
PaleBlueNote merged 1 commit intomainfrom Jan 13, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Summary
브라우저 렌더링 파이프라인의 **Reflow(Layout)**와 Repaint(Composite) 단계의 비용 차이를 시각적/정량적으로 증명하는 실험(Day 1)을 구현했습니다.
또한, 대량의 DOM 제어 시 발생하는 React 렌더링 병목과 GPU Layer Explosion(레이어 폭발) 현상을 분석하고 최적화했습니다.
🛠️ Key Changes
1. Core Logic & UI
left/top속성(CPU)과transform(GPU) 속성을 제어하여 브라우저 부하 비교.stats.js를 연동하여 FPS 측정.2. ⚡️ Performance Optimization (Deep Dive)
실험 과정에서 발견한 두 가지 핵심 병목 현상을 해결했습니다.
A. UI Blocking 해결 (INP 개선)
React.memo: 하위 아이템 컴포넌트의 불필요한 리렌더링 방지.useTransition: 무거운 상태 업데이트를 비동기(Concurrent)로 처리하여 UI 응답성(Loading Indicator) 즉시 확보.B. Layer Explosion (레이어 폭발) 해결
will-change: transform적용 시, GPU 텍스처 관리 오버헤드로 인해 오히려 GPU 모드가 CPU 모드보다 느려지는 역설적 현상 발생.box-shadow,border-radius속성을 추가하여 개별 렌더링 비용을 높여 CPU Reflow 부하를 강조함.📊 Result Analysis (Proof)
Chrome Performance 탭 분석 결과, CPU와 GPU의 결정적인 차이를 입증했습니다.
📸 Screenshots
[ GPU ]

[ CPU ]

🔗 Related Issue
Closes #5