ruffle-rs / ruffle

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

Lucky Tower 2 - Audio stuttering with music and dialog. #17737

Open TomFulp opened 2 months ago

TomFulp commented 2 months ago

Describe the bug

In Lucky Tower 2, the music will stutter on and off and when characters are speaking, sometimes their dialog will skip back a bit and they'll repeat the words they just said.

Expected behavior

Consistent music and no dialog repeating.

Content Location

https://www.newgrounds.com/portal/view/607185/format/flash?emulate=flash

Affected platform

Self-hosted version

Operating system

Windows 11

Browser

Chrome Version 127.0.6533.119 (Official Build) (64-bit)

Additional information

No response

torokati44 commented 2 months ago

This is mostly a performance problem - the AVM2 engine can't keep up, and the sound keeps resynchronizing to all the other stuff, happening too slowly. Most of the time is spent in ruffle_web.wasm.ruffle_core::avm2::activation::Activation::run_actions: https://share.firefox.dev/4cMrr93