Skip to content

Commit

Permalink
fix: Typo in performance regression docs (#2968)
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeDahl authored Aug 11, 2023
1 parent 6f62d4f commit bb5cd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/scaling-performance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ Here is a small prototype component that scales the pixel ratio:
```jsx
function AdaptivePixelRatio() {
const current = useThree((state) => state.performance.current)
const setPixelRatio = useThree((state) => state.setPixelRatio)
const setPixelRatio = useThree((state) => state.setDpr)
useEffect(() => {
setPixelRatio(window.devicePixelRatio * current)
}, [current])
Expand Down

0 comments on commit bb5cd16

Please sign in to comment.