hex/site/src/Root.tsx
Dax b2b7e56c5b
perf(site): a smoother homepage show with identical pixels (#727)
- WebGPU: upload changed atlas rects through a small staging canvas, once each per
  frame, instead of copying from the 4096² atlas (each copy snapshotted the whole
  canvas); the canvas is opaque, so it says so.
- Canvas 2D: cut each shard's face from the card atlas once instead of clipping the
  card twice a frame per shard.
- Screen break: settled cracks keep their paths, styles and crater gradient; the
  idle glass layer leaves the layout.
- Make the AudioContext when the visitor reaches for the key, stop the hidden
  keycap glow, and drop the unused motion wrapper (~24 KB gzip of first-load JS).
2026-10-31 21:49:35 -04:00

10 lines
159 B
TypeScript

import { StrictMode } from "react"
import App from "./App"
export default function Root() {
return (
<StrictMode>
<App />
</StrictMode>
)
}