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

Camera shaking #6810

Open
damian-pastorini opened this issue May 5, 2024 · 1 comment
Open

Camera shaking #6810

damian-pastorini opened this issue May 5, 2024 · 1 comment

Comments

@damian-pastorini
Copy link

damian-pastorini commented May 5, 2024

Version

  • Phaser Version: 3.70 and 3.80 but probably earlier.
  • Operating system:
    Any (I'm on Windows)
  • Browser:
    Any (Firefox, Chrome and Opera)

Description

Example Test Code

The issue is visible in the current examples:

Additional Information

The issue happens in both ways depending what the camera follows, with the background or the player.

Coming from #5018 (comment)

@damian-pastorini damian-pastorini changed the title Camera shaking on lerp Camera shaking May 5, 2024
@ncoop720
Copy link

ncoop720 commented May 12, 2024

I am also experiencing this issue and it is driving me insane. It only seems to happen when when trying to implement a fixed time step for multiplayer games when the monitor refresh (165hz) rate doesn't match the fixed time step (60 fps):

update(_time: number, delta: number): void {
    if (!this.currentPlayer || this.paused) return

    this.elapsedTime += delta
    while (this.elapsedTime >= FIXED_TIME_STEP) {
      this.elapsedTime -= FIXED_TIME_STEP
      this.fixedTick()
    }  
  }

Using direct movement rather than physics movement.

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

No branches or pull requests

2 participants