Skip to content

Commit

Permalink
docs: fix SyncMainLoop example
Browse files Browse the repository at this point in the history
  • Loading branch information
verekia committed Oct 6, 2024
1 parent 3a46dad commit 7b85a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ const SyncMainLoop = () => {
const advance = useThree(s => s.advance)

useMainLoop(
({ elapsed }) => advance(elapsed),
({ time }) => advance(time / 1000),
{ stage: STAGE_RENDER } // Or whatever stage you want
)

Expand Down

0 comments on commit 7b85a9c

Please sign in to comment.