[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -2,91 +2,163 @@
|
||||
id: wiki-2026-0508-지연-렌더링-deferred-rendering
|
||||
title: 지연 렌더링(Deferred Rendering)
|
||||
category: 10_Wiki/Topics
|
||||
status: needs_review
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: []
|
||||
aliases: [Deferred Rendering, Lazy Rendering, useDeferredValue, Concurrent Rendering]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.92
|
||||
tags: [uncategorized]
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [frontend, performance, react, concurrent-rendering]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-05-08
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
|
||||
tech_stack:
|
||||
language: unspecified
|
||||
framework: unspecified
|
||||
language: typescript
|
||||
framework: react
|
||||
---
|
||||
|
||||
# 지연 렌더링(Deferred Rendering)
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
지연 렌더링(Deferred Rendering)은 전술 시뮬레이션 게임 [[WARNO|WARNO]]의 기술적 기반인 Iriszoom 엔진이 채택하고 있는 핵심 렌더링 구조이다 [1, 2]. 이 엔진 구조는 전면적인 물리 기반 렌더링(PBR) 지원과 통합되어 최신 산업 표준을 충족하도록 업그레이드되었다 [1]. 특히 수 킬로미터에 달하는 광활한 전장 환경에서 발생하기 쉬운 장거리 스펙큘러 노이즈 현상을 효과적으로 억제하는 역할을 수행한다 [1, 2].
|
||||
## 매 한 줄
|
||||
> **"매 expensive render 를 매 user input 의 responsiveness 보다 매 뒤로 미룬다"**. 매 React 18+ 의 concurrent rendering 이 매 native 한 deferral 을 제공 — `useDeferredValue`, `useTransition`, `Suspense` 가 매 trio. 매 typing latency 와 매 result list 의 update 를 매 분리해 매 INP < 200ms 달성.
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
* **Iriszoom 엔진과의 통합**: WARNO를 구동하는 EugenSystems의 독자적 엔진인 Iriszoom은 기술적으로 지연 렌더링 구조를 기반으로 작동한다 [2]. 개발사는 과거 타이틀부터 이어져 온 지연 렌더링 엔진을 전체 PBR을 지원하도록 전면적으로 업그레이드하였다 [1].
|
||||
* **지형 렌더링 및 장거리 시야 최적화**: 지연 렌더링 구조를 바탕으로 지형 렌더링 기술이 대대적으로 개선되었다 [2]. 전략적 조감을 위해 멀리 떨어진 거리에서 지형을 바라볼 때 흔히 발생하는 '장거리 PBR 스펙큘러 폭발(PBR-specular explosion from far)' 내지 노이즈 문제를 부드럽고 효과적으로 억제하여 시각적 가시성을 확보한다 [1, 2].
|
||||
* **에셋 생산 파이프라인 진화**: 지연 렌더링 엔진의 향상된 기능 덕분에 게임의 에셋(Asset) 생산 파이프라인도 최신화되었다 [3]. 기존의 구형 Specular/Glossiness 워크플로우를 폐기하고, 최신 형태의 [[Metal|Metal]]lic/Roughness/Ambient Occlusion 워크플로우로 전환함으로써 훨씬 정교하고 사실적인 재질감을 구현할 수 있게 되었다 [2, 3].
|
||||
* **성능 및 최적화 유지**: 그래픽과 렌더링 품질이 대폭 향상되었음에도 불구하고, 최소 사양 환경에서도 효율적으로 작동하도록 유지하는 것을 목표로 설계되었다 [3]. 그 결과 전작인 Steel Division 2보다 더 높은 컴퓨터 요구 사양을 필요로 하지 않으며 [3], 10v10 대규모 멀티플레이어 환경에서도 4K 해상도를 안정적으로 지원하는 높은 최적화 수준을 보여준다 [2].
|
||||
## 매 핵심
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
- **Related Topics:** [[Iriszoom 엔진|Iriszoom 엔진]], [[물리 기반 렌더링(PBR)|물리 기반 렌더링(PBR]]
|
||||
- **Projects/Contexts:** [[WARNO|WARNO]]
|
||||
- **Contradictions/Notes:** 소스 간의 모순점은 존재하지 않습니다. 지연 렌더링을 통해 그래픽 품질이 크게 개선되었음에도 불구하고 게임의 사양 요구치가 높아지지 않도록 최적화가 잘 이루어졌음이 강조되고 있습니다 [3].
|
||||
### 매 두 종류
|
||||
- **Time deferral (concurrent)**: useTransition / useDeferredValue 로 매 low-priority work 를 매 schedule.
|
||||
- **Visibility deferral (lazy)**: IntersectionObserver, content-visibility 로 매 off-screen render skip.
|
||||
|
||||
---
|
||||
*Last updated: 2026-04-28*
|
||||
### 매 메커니즘
|
||||
- React scheduler 가 매 5ms budget 단위 로 매 yield → 매 main thread 자유.
|
||||
- High-priority (input, click) 는 매 즉시, low-priority (list re-render) 는 매 idle 시점.
|
||||
- React 19 의 매 automatic batching 과 결합 → 매 render churn 최소.
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
### 매 응용
|
||||
1. Search-as-you-type (검색창 + 결과 리스트).
|
||||
2. Tab switching (heavy panel).
|
||||
3. Long list filtering / sorting.
|
||||
4. Off-screen image / video / iframe.
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
## 💻 패턴
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
### useDeferredValue (입력 즉시, 결과 지연)
|
||||
```tsx
|
||||
function Search() {
|
||||
const [query, setQuery] = useState("");
|
||||
const deferredQuery = useDeferredValue(query);
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
|
||||
- **정보 상태:** needs_review
|
||||
- **출처 신뢰도:** A
|
||||
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
|
||||
|
||||
## 🧬 중복 검사 (Duplicate Check)
|
||||
|
||||
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
|
||||
- **처리 방식:** UPDATE (자동 정규화)
|
||||
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
|
||||
- **과거 데이터와의 충돌:** 없음
|
||||
- **정책 변화:** 없음
|
||||
|
||||
## 🕓 변경 이력 (Changelog)
|
||||
|
||||
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|
||||
|------|-----------|-----------|--------|
|
||||
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
|
||||
|
||||
## 💻 코드 패턴 (Code Patterns)
|
||||
|
||||
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
|
||||
|
||||
```text
|
||||
# TODO
|
||||
return (
|
||||
<>
|
||||
<input value={query} onChange={e => setQuery(e.target.value)} />
|
||||
{/* 매 input 은 매 즉시, list 는 매 deferred */}
|
||||
<SlowResults query={deferredQuery} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
## 🤔 의사결정 기준 (Decision Criteria)
|
||||
### useTransition (state update 를 transition 으로)
|
||||
```tsx
|
||||
const [tab, setTab] = useState("home");
|
||||
const [isPending, startTransition] = useTransition();
|
||||
|
||||
**선택 A를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
const handleTab = (next: string) => {
|
||||
startTransition(() => setTab(next)); // 매 heavy switch
|
||||
};
|
||||
|
||||
**선택 B를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
return (
|
||||
<>
|
||||
{isPending && <Spinner />}
|
||||
<TabPanel name={tab} />
|
||||
</>
|
||||
);
|
||||
```
|
||||
|
||||
**기본값:**
|
||||
> *(TODO)*
|
||||
### Suspense 로 streaming
|
||||
```tsx
|
||||
<Suspense fallback={<Skeleton />}>
|
||||
<SlowDataView />
|
||||
</Suspense>
|
||||
```
|
||||
|
||||
## ❌ 안티패턴 (Anti-Patterns)
|
||||
### React.lazy + dynamic import
|
||||
```tsx
|
||||
const Editor = lazy(() => import("./RichTextEditor"));
|
||||
return (
|
||||
<Suspense fallback={<EditorSkeleton />}>
|
||||
<Editor />
|
||||
</Suspense>
|
||||
);
|
||||
```
|
||||
|
||||
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
|
||||
### content-visibility (CSS-level skip)
|
||||
```css
|
||||
.below-fold-section {
|
||||
content-visibility: auto;
|
||||
contain-intrinsic-size: 800px;
|
||||
}
|
||||
```
|
||||
|
||||
### IntersectionObserver 기반 lazy mount
|
||||
```tsx
|
||||
function LazyMount({ children }: { children: ReactNode }) {
|
||||
const [visible, setVisible] = useState(false);
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
|
||||
useEffect(() => {
|
||||
const obs = new IntersectionObserver(([e]) => {
|
||||
if (e.isIntersecting) { setVisible(true); obs.disconnect(); }
|
||||
});
|
||||
if (ref.current) obs.observe(ref.current);
|
||||
return () => obs.disconnect();
|
||||
}, []);
|
||||
|
||||
return <div ref={ref}>{visible ? children : null}</div>;
|
||||
}
|
||||
```
|
||||
|
||||
### Virtualized list (TanStack Virtual)
|
||||
```tsx
|
||||
const virtualizer = useVirtualizer({
|
||||
count: items.length,
|
||||
getScrollElement: () => parentRef.current,
|
||||
estimateSize: () => 40,
|
||||
});
|
||||
```
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| Typing → expensive render | useDeferredValue |
|
||||
| Tab/route 전환 heavy | useTransition |
|
||||
| Below-fold heavy section | content-visibility: auto |
|
||||
| 1000+ row list | TanStack Virtual |
|
||||
| Code split heavy editor | React.lazy + Suspense |
|
||||
|
||||
**기본값**: useDeferredValue (typing) + useTransition (navigation) + content-visibility (off-screen).
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Concurrent Rendering]] · [[React Performance]]
|
||||
- 변형: [[useTransition]] · [[useDeferredValue]] · [[Suspense]]
|
||||
- 응용: [[Search-as-you-type]] · [[Virtualization]]
|
||||
- Adjacent: [[Code Splitting]] · [[Critical Rendering Path]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: 매 input lag, 매 INP > 200ms, 매 large list, 매 heavy chart.
|
||||
**언제 X**: 매 small static UI, 매 SSR-only.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **모든 update 를 transition 으로**: 매 critical update 도 지연 → 매 stale UI.
|
||||
- **useDeferredValue + heavy memo 부재**: 매 child 가 매 매번 재렌더.
|
||||
- **Suspense 없이 React.lazy**: 매 fallback 미정 → crash.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (React 19 docs, web.dev INP guide).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — deferred rendering 7 patterns |
|
||||
|
||||
Reference in New Issue
Block a user