Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: debug.timeScale doesn't scale dt() #599

Open
Granshmeyr opened this issue Jan 24, 2025 · 0 comments
Open

bug: debug.timeScale doesn't scale dt() #599

Granshmeyr opened this issue Jan 24, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Granshmeyr
Copy link

Describe the bug

debug.timeScale has no effect on dt(). Changing debug.timeScale during runtime will affect nothing.

Version

4000.0.0-alpha.15
and every 3001 version, iirc.

To Reproduce

Steps to reproduce the behavior:

  1. Open the confetti example on KAPLAYGROUND
  2. Click to spawn particles, note their speed
  3. Press F7 / F9 to alter the time scale
  4. Click again, note how their speed has not changed

Alternative:

  1. Run console.log(dt()) with debug.timeScale value of 1, note the return value
  2. Alter the value of debug.timeScale
  3. Run console.log(dt()) again, note how the return value is not scaled

Expected behavior

debug.timeScale should scale the return value of dt().

@Granshmeyr Granshmeyr added the bug Something isn't working label Jan 24, 2025
@lajbel lajbel self-assigned this Jan 24, 2025
@lajbel lajbel moved this to Todo in KAPLAY.js Bugs Jan 24, 2025
@lajbel lajbel added this to the 3001.1 milestone Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants