Skip to content

refactor: migrate THREE.Clock to THREE.Timer - #303

Merged
dli7319 merged 1 commit into
google:mainfrom
dli7319:timer
May 26, 2026
Merged

refactor: migrate THREE.Clock to THREE.Timer#303
dli7319 merged 1 commit into
google:mainfrom
dli7319:timer

Conversation

@dli7319

@dli7319 dli7319 commented May 26, 2026

Copy link
Copy Markdown
Collaborator
  • Inject global THREE.Timer into ModelViewer and GazeController via static dependencies.
  • Replace local clocks with the injected timer to avoid duplicate time updates.
  • Remove clock in PortalGalleryScene demo and query xb.getDeltaTime() directly.
  • Update stale JSDoc comments referencing 'Clock' or 'clock.getDeltaTime()' in Core and GazeController.

- Inject global THREE.Timer into ModelViewer and GazeController via static dependencies.
- Replace local clocks with the injected timer to avoid duplicate time updates.
- Remove clock in PortalGalleryScene demo and query xb.getDeltaTime() directly.
- Update stale JSDoc comments referencing 'Clock' or 'clock.getDeltaTime()' in Core and GazeController.
@dli7319
dli7319 requested a review from ruofeidu May 26, 2026 17:09
@dli7319
dli7319 merged commit a6c29e7 into google:main May 26, 2026
8 checks passed
@dli7319
dli7319 deleted the timer branch May 26, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants