ruffle-rs / ruffle

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

[S] Cascade. is incredibly slow and has graphical issues #437

Open leo60228 opened 4 years ago

leo60228 commented 4 years ago

The flash runs at about 2fps, and pins my CPU to 100% utilization. There were also a few graphical issues, but I closed the page about a minute in. I'll be using timestamps from the official YouTube upload for reference.

The flash is somewhat difficult to obtain due to using a multi-layered loader. It's officially available on Newgrounds. Here's the first of 5 .swfs (the only one I watched) directly: 04109_segment1.swf.zip. I'm on Firefox 73.0.1 from NixOS.

leo60228 commented 4 years ago

None of these issues occur on the desktop version except for the first, but the audio sounds kinda off? I can't really put my finger on it.

Herschel commented 4 years ago
omentic commented 4 years ago

I noticed a couple others:

0:40: Grist doesn't flash different colors 8:25: Green glow around Jade and related elements doesn't appear 9:01: Kaleidoscoping checkerboard planet 10:12: Fourth wall is too opaque, happens again at 12:52

I have a 55mb single-flash version hosted here. The Flash runs at full speed on Chromium on both Windows and Linux, but does eat up ~6GB of RAM.

leo60228 commented 4 years ago

Is that site just homestuck.com with Ruffle injected? I was working on a reimplementation of the site at https://github.com/leo60228/htmlstuck.

On Sun, Aug 16, 2020, 4:40 PM j-james notifications@github.com wrote:

I noticed a couple others:

0:40: Grist doesn't flash different colors 8:25: Green glow around Jade and related elements doesn't appear 9:01: Kaleidoscoping checkerboard planet 10:12: Fourth wall is too opaque, happens again at 12:52

Also, I have a 55mb single-flash version hosted here. https://j-james.me/htmlstuck/story/4109

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ruffle-rs/ruffle/issues/437#issuecomment-674575155, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7X32NBVVJTXB6VLDGNJ7DSBA72LANCNFSM4LFJ7BAQ .

omentic commented 4 years ago

Pretty much, it's all hosted on GitHub Pages here. I was going to try and get some form of autoplay set up, but right now it's just the latest Ruffle release.

Rult commented 4 years ago

fyi, here are all the segments: 1,2,3,4,5. running them separately shouldn't take up much memory

can confirm all issues mentioned by j-james (current nightly build on windows 10)

omentic commented 3 years ago

I've noticed a performance regression that seems to lead to cascading (heh) failures with the current nightly, that seems to have been introduced sometime between last September and now.

Here is Ruffle (09/04/2020) running [S] Cascade: https://j-james.me/htmlstuck/story/4109

And, here is the current nightly (01/01/2021) running it: https://j-james.me/htmlstuck-devel/story/4109

At least to my observation on my laptop (with 8 gigs of ram), the current Ruffle version consumes enough ram that Ruffle seems to start throwing various errors out, while stalling out the browser window. The September version, while still taking a fair amount of time and ram to load, would play back near-perfectly with very minor visual issues logged to the console.

Uncaught TypeError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid.
    at w (ruffle_web_bg.js:50)
    at Object.X (ruffle_web_bg.js:438)
    at __wbindgen_string_new (wasm chunk loading:308)
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[3449]:0x32247a
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[4675]:0x33d91a
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[3136]:0x311ad7
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[4586]:0x33cf1f
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[837]:0x1dc8a6
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[462]:0x131c0f
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[280]:0x19362
ruffle_web_bg.js:489
_e @ ruffle_web_bg.js:489
__wbg_error_4bb6c2a97407129a @ wasm chunk loading:344
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x2c9d77
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x26a72b
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x26f1f8
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x3359d8
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x312b45
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x32bf97
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x33afcb
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x3396ac
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x33aa63
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x25fe62
_dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h54a054173450dc02 @ ce5fb811eae33c17c90c.module.wasm:0x33cd62
I @ ruffle_web_bg.js:224
f @ ruffle_web_bg.js:205
ruffle_web_bg.js:50 Uncaught TypeError: Failed to execute 'decode' on 'TextDecoder': The encoded data was not valid.
    at w (ruffle_web_bg.js:50)
    at Object.Z (ruffle_web_bg.js:452)
    at __wbg_new_df6e6ab7a65c4c4d (wasm chunk loading:320)
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[1452]:0x26a7a3
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[1479]:0x26f1f8
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[4060]:0x3359d8
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[3155]:0x312b45
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[3687]:0x32bf97
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[4400]:0x33afcb
    at /htmlstuck-devel/ruffle/ce5fb811eae33c17c90c.module.wasm:wasm-function[4276]:0x3396ac
w @ ruffle_web_bg.js:50
Z @ ruffle_web_bg.js:452
__wbg_new_df6e6ab7a65c4c4d @ wasm chunk loading:320
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x26a7a3
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x26f1f8
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x3359d8
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x312b45
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x32bf97
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x33afcb
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x3396ac
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x33aa63
(anonymous) @ ce5fb811eae33c17c90c.module.wasm:0x25fe62
and so on...