ruffle-rs / ruffle

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

Performance Issues: 7,000+ Onscreen Symbols #11236

Open Anonymous-Frog opened 1 year ago

Anonymous-Frog commented 1 year ago

Hello. I'm spending the whole year working on a Flash demoscene-type project, of which 4 demos have been implemented: (right click + forward to view the other ones).

One of the demos (the one with the AI generated red bananas) seems to run decently on Newgrounds Player, but the framerate tanks horribly when running with Ruffle (it's supposed to run at 60fps on "Low", either fullscreen or at its original resolution). It's an effect that uses up around 7,200 symbols to fill the image's pixel resolution (90 rows of 80 two-pixel chunks).

Preview link: https://www.newgrounds.com/projects/movies/4749320/preview/filetype/0/emulate/flash

For reference, I'm using a decently powered laptop.

ErdincBARUT commented 1 year ago

+1 Exactly flash player too same result. Maybe ruffle make GL renderer gone faster than regular player. Maybe graphic rendering stop when object out of visible area. That maybe solve problem.

I testing on Microsoft Edge/ FPS counter. Object count directly impacting FPS.

There is Clickable 1920x1080 SWF files exists Maybe use in test.

RuffleTest.zip