ruffle-rs / ruffle

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

Poor perfomance in latest builds #15189

Open mike84 opened 8 months ago

mike84 commented 8 months ago

Describe the bug

In the latest builds (eg 2024-02-10) the performance is very poor. On the build I was using previously (2023-08-01) performance was much better.

Expected behavior

Decent performance like that from previous versions.

Content Location

swf is hosted here: https://rubber.tube/games/timcredible/timCredible_game.swf

It's embedded in the web page here: https://rubber.tube/games/timcredible/timcredible_latest_rufflejs.html

Affected platform

Self-hosted version

Operating system

Windows 11 and Android

Browser

Chrome & firefox.

Additional information

Open the webpage, start a new game, skip the intro (top right). Once the platform game starts, performance is poor.

The performance decrease is particularly noticeable when running on a mobile device (eg pixel 7) where it becomes unplayable where previously it ran very well. But the FPS drop can be seen on desktop in firefox as well. Chrome on desktop it seems to run fine.

Compared to the same flash file using an older rufflejs build (2023-08-01) where performance is vastly better: https://rubber.tube/games/timcredible/timcredible.html On mobile, or desktop firefox this version runs very well.

chichilatte commented 8 months ago

I just updated a website from Ruffle 2023-02-17 to 2024-02-15 and saw a massive performance loss, causing really nasty page lag.

So i went back, testing performance with various versions and found that the performance fell drastically on 2023-06-24.

My guess is it was the newly implemented cacheAsBitmap feature.

Here's one of the swfs I was testing: test.swf.zip