ruffle-rs / ruffle

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

Freeway Fury: Poor Performance #9033

Open waspennator opened 1 year ago

waspennator commented 1 year ago

Describe the bug

https://www.newgrounds.com/portal/view/542949?emulate=flash Game seems to show the cars now on desktop and on the current build on Newgrounds (Beforehand they were completely invisible), but the performance seems to tank as more cars pop up on the screen, dragging the title screen to a slow crawl and causes my laptop fans to spin up.

Provided a pic of the 2 errors i'm seeing cause this swf really seems to warm up my cpu whenever I test it. Freeway

Expected behavior

Game shouldn't slow to a crawl at the title screen

Affected platform

Browser's extension

Operating system

Windows 11

Browser

Edge 108

Additional information

No response

n0samu commented 1 year ago

Is the performance OK on desktop or is it bad there too?

waspennator commented 1 year ago

Testing it out on desktop, it's slightly better, but the performance doesn't seem 100% on my end and it still seems to heat my laptop cpu up when trying to run this. I think the errors listed in the console log pic seem to continually increase until the console refuses to publicly log anymore cause of how many there are.

Sharing specs just to further clarify: 8 GB of DD4 Ram AMD Ryzen 5 5600H CPU Nvidia GTX 1650 GPU

waspennator commented 1 year ago

Performance still seems to be poor, but now the crazy monkey logo sounds are looping constantly too into the main menu.

waspennator commented 1 year ago

542949_FF.zip Providing a physical copy for testing, but apparently the regression with the crazymonkey logo looping in the background audio wise seems to have started around build 2023-03-08. Also from chucking this into the ruffle web demo, I wonder if the source of the performance issues comes from "AVM2 flash.display.BitmapData.lock/unlock()" not being implemented

waspennator commented 1 year ago

Performance seems to be playable now on desktop, but web seems to be iffy still, also the crazy monkey logo noises seems to play into the actual gameplay too.

Lord-McSweeney commented 1 year ago

The sound issue is probably caused by this: DoAction tag in AVM2 movie (or, possibly, because MCs without parents shouldn't loop)

waspennator commented 3 months ago

Performance still seems to be kinda iffy checking on my s22, but the crazy monkey logo aint looping sound wise anymore on the main menu though