ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.48k stars 802 forks source link

Performance issues on Totem Destroyer #9030

Open Lord-McSweeney opened 1 year ago

Lord-McSweeney commented 1 year ago

Describe the bug

On Totem Destroyer (https://www.newgrounds.com/portal/view/447836), the FPS can go below 15, making the game just barely playable. The game runs fine if there are fewer than four blocks left, but if a level has more than ten blocks, the FPS sometimes goes below 8.

Expected behavior

The game has no performance issues.

Affected platform

Browser's extension

Operating system

Linux

Browser

Chrome 108

Additional information

No response

n0samu commented 1 year ago

Yes, the AVM2 interpreter needs some optimization. Physics simulation with many objects is very slow right now.

Lord-McSweeney commented 1 year ago

9029, #8949, and #8948 all have performance issues with physics simulation.

adrian17 commented 2 months ago

Do you think it's decent enough now?