Skip to content

Commit

Permalink
remove unescessary call to getElapsedTime
Browse files Browse the repository at this point in the history
  • Loading branch information
AlaricBaraou committed Feb 10, 2025
1 parent 71f0252 commit 49fbc68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/composables/useRenderLoop/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const { pause, resume, isActive } = useRafFn(

onAfterLoop.on(() => {
delta = clock.getDelta()
elapsed = clock.getElapsedTime()
elapsed = clock.elapsedTime
})

let startedOnce = false
Expand Down
2 changes: 1 addition & 1 deletion src/core/loop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function createRenderLoop(): RendererLoop {
return
}
const delta = clock.getDelta()
const elapsed = clock.getElapsedTime()
const elapsed = clock.elapsedTime
const snapshotCtx = {
camera: unref(context.camera),
scene: unref(context.scene),
Expand Down

0 comments on commit 49fbc68

Please sign in to comment.