Skip to content

Support THREE.Timer while retaining compatibility with older Three.js versions #385

Description

@Huciko

Description

Spark currently uses THREE.Clock internally in sparkRuntime.ts. In applications using Three.js r183 or later, this results in Spark relying on a deprecated Three.js API, even when the application itself has migrated to THREE.Timer.

THREE.Clock: This module has been deprecated. Please use THREE.Timer instead.

Could Spark introduce a version-compatible timing abstraction that uses THREE.Timer when available and falls back to THREE.Clock for older supported Three.js versions?

This would align Spark with current Three.js timing APIs, avoid deprecated API usage, and preserve compatibility with older Three.js releases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions