feat: StationOverlay 렌더링 최적화 및 스무딩 적용 close #1

- 텍스트(측점/POI) 전 프레임 사전 계산 Map (requestIdleCallback 백그라운드)
- 드론 데이터 이동 평균 스무딩 (smoothFrame ±N프레임)
- 30fps→60fps 프레임 간 선형 보간 (performance.now() 기반)
- EMA(지수이동평균) 표시 위치 스무딩 (α=0.01 기본값)
- 글씨 2배 크기, bold, strokeText 테두리, 배경 박스 제거
- 카메라 파라미터 패널에 smooth/EMA α 슬라이더 추가

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
minsung
2026-04-01 15:11:39 +09:00
commit 2aae3d1c0d
89 changed files with 15739 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
# history-hooks 적용 및 토큰 사용량 집계
**소요 시간**: 약 40분
**Context 사용량**: input ~13k / output ~142k tokens (cache 포함)
**이슈**: #0
---
## 작업 내용
### 1. history_hooks 리뷰 및 프로젝트 적용
- `history_hooks/` 디렉토리의 5개 파일 분석
- `.claude/hooks/`에 복사: `guard-history-fields.py`, `guard-history-fields.sh`, `guard-history-reminder.sh`, `session-context.sh`, `path.json`
- `session-context.sh`, `guard-history-reminder.sh``$CLAUDE_PROJECT_DIR` 기반 절대경로로 수정
- `.claude/settings.json`에 3개 훅 이벤트 등록:
- `PostToolUse(Edit|Write)``guard-history-fields.sh`
- `Stop``guard-history-reminder.sh`
- `UserPromptSubmit``session-context.sh`
- `docs/history/` 디렉토리 생성
### 2. 일자별 토큰 사용량 집계
- `~/.claude/projects/d--MYCLAUDE-PROJECT-abcvideo/*.jsonl` 파싱
- `requestId` 중복 제거 후 날짜별 집계
- 결과: 총 974 요청, input 12,556 / output 135,445 / cache_create 3,655,924 / cache_read 91,618,473
### 3. Gitea 이슈 코멘트 등록
- `kimminsung/dronevideoplayer#1`에 일자별 토큰 사용량 테이블 코멘트 추가
### 4. guard-history-reminder.sh 수정
- 기존: `exit 0` → stderr 메시지만 출력, Claude 그냥 종료
- 변경: 오늘 날짜 히스토리 파일 없으면 `exit 2`로 Claude 종료 차단 → 히스토리 작성 강제
## 산출물
- `.claude/hooks/guard-history-fields.py`
- `.claude/hooks/guard-history-fields.sh`
- `.claude/hooks/guard-history-reminder.sh` (수정)
- `.claude/hooks/session-context.sh`
- `.claude/hooks/path.json`
- `.claude/settings.json` (Stop, UserPromptSubmit 훅 추가)
- `docs/history/` 디렉토리