revert(B07): 저지연 캔버스를 되돌린다 — 일부 스냅이 안 걸렸다

desynchronized+alpha:false로 합성 큐를 건너뛰게 했더니 일부 스냅이 동작하지 않는다는
지적. 커서 체감보다 스냅 정확도가 먼저다. 화면 캔버스를 원래 getContext('2d')로 되돌린다.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-30 21:20:26 +09:00
co-authored by Claude Opus 5
parent 9c1cdf8f4d
commit 8666bfdcfa
+1 -7
View File
@@ -143,13 +143,7 @@ function initApplication() {
if (canvas) {
setCanvas(canvas);
// 저지연 캔버스 — 렌더러 합성 큐를 건너뛰어 커서·고무줄이 손에 붙는다
// (2026-08-30 커서가 미묘하게 끌린다는 지적. 프레임은 16.7ms로 정상이었고
// 남은 지연은 합성 파이프라인이었다). alpha:false는 불투명 캔버스로 만들어
// 합성을 한 겹 더 덜어 준다 — 도면 배경은 언제나 불투명하다.
// https://developer.chrome.com/blog/desynchronized
const context =
canvas.getContext('2d', { desynchronized: true, alpha: false }) ?? canvas.getContext('2d');
const context = canvas.getContext('2d');
if (!context) return;
setEntities([], true); // Creates the first undo entry