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

Occasional object teleportation (game speed up) on Macbook Pro M1 Max #8948

Open
kirilllysenko opened this issue May 18, 2024 · 2 comments
Open
Assignees
Labels
bug Something is not working as expected engine Issues related to the Defold engine render

Comments

@kirilllysenko
Copy link

kirilllysenko commented May 18, 2024

Bug description:

When playing some Defold sample projects objects are being teleported. It looks like occasionally 1 in-game second passes during 1 frame. Better to see attached videos to understand

Steps to reproduce the behavior:

  1. Create new project in Defold from one of the projects below
    1.1. From template "Platformer game"
    1.2. From sample "Lightning VFX"
    1.3. From sample "Pixel line platformer"
  2. Run game using Project -> Build
  3. Play game for some time and see bug

Expected behavior:
Playing game without occasional object teleportation (game speed-up)

Defold version:

  • Version 1.8.0
  • Channel: editor-alpha
  • Build time: 2024-05-1515:14:00.109381
  • Defold CPU arch: Apple Silicon

Platforms:

  • Platforms: MacOS
  • OS: MacOS Sonoma 14.4.1
  • Device: Macbook Pro M1 Max

Minimal repro case project:
https://github.com/defold/template-platformer/archive/main.zip
https://github.com/defold/sample-pixel-line-platformer/archive/refs/heads/main.zip
https://github.com/FlexYourBrain/sample_LightningVFX/archive/master.zip

Videos of bug:
https://github.com/defold/defold/assets/47689344/0d74ef64-6c11-4cb0-9dc9-456ac9b3d01b
https://github.com/defold/defold/assets/47689344/9cbb5b44-e217-418d-ac5d-4aa90209e3eb
https://github.com/defold/defold/assets/47689344/64bce953-d2fa-4b3b-904d-9341292af801

Additional Info:
On some sample projects there is no such problem

@kirilllysenko kirilllysenko added the bug Something is not working as expected label May 18, 2024
@gianmichelemariani
Copy link
Sponsor

I'm experiencing the same issue. My specs are slightly different:

  • Platform: MacOS
  • OS: MacOS Ventura 13.6.6
  • Device: Macbook Pro 16 M1Pro
  • This happens both with battery and connected to power brick.

@britzl britzl added the render label May 20, 2024
@britzl britzl added the engine Issues related to the Defold engine label May 20, 2024
@Jhonnyg
Copy link
Contributor

Jhonnyg commented May 20, 2024

Setting the "update frequency" to zero seems to remove the warping in both projects, we'll need to do some more investigation as to why the frame delta occasionally spikes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as expected engine Issues related to the Defold engine render
Projects
Status: Todo
Development

No branches or pull requests

4 participants