Skip to content

jank in mixed bodies physics example (Firefox only) #7184

@haydenflinner

Description

@haydenflinner

Version

Description

If I grab one of the objects in this example and drag it around quickly, I can trigger a 1.5s freeze. In Chrome, I can't reproduce this hitch, but I notice that I have fewer objects left on screen after shaking for a while, so it's possible that the moment something first levels the visible part of the scene is related to when the slowdown happens.

Edit: I believe the hitch happens whenever something is pushed off-screen; once recognizing this, I was first able to reproduce two perf hitches in the same session (without refreshing or changing tabs)

Example Test Code

https://phaser.io/examples/v3.85.0/physics/matterjs/view/mixed-bodies

Additional Information

A normal perf trace
Image

A trace for the "jank" moment as labelled by the devtools debugger :-)
Image

Image Image

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