ruffle-rs / ruffle

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

Adventurequest: Repeatedly opening shops results in massive memory & CPU usage #13585

Open ghost opened 1 year ago

ghost commented 1 year ago

Describe the bug

Repeatedly opening a shop in Adventurequest results in exponential CPU and memory usage over time. This is especially problematic when performing many transactions with moving items around inventories and vaults. This inevitably causes the game to slow down over time and eventually crash.

Expected behavior

Performance of opening shops should not cause the game to degrade over time.

Affected platform

Desktop app

Operating system

Archlinux

Browser

Google Chrome

Additional information

No response

Lord-McSweeney commented 1 year ago

Are you sure you're on the latest Ruffle version?

ghost commented 1 year ago

@Lord-McSweeney Here's the debug information:

# Player Info
Allows script access: false
Renderer: WebGL 2.0
Adapter Vendor: WebKit
Adapter Renderer: WebKit WebGL
Adapter Version: WebGL 2.0 (OpenGL ES 3.0 Chromium)
Surface samples: 4 x 
Surface size: 1248 x 914

# Page Info
Page URL: https://guardian.battleon.com/game/web?launchtype=medium
SWF URL: https://guardian.battleon.com/game/flash/Lore4580.swf?ver=2

# Browser Info
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Platform: Linux x86_64
Has touch support: false

# Ruffle Info
Version: 0.1.0
Name: nightly 2023-10-17
Channel: nightly
Built: 2023-10-17T00:21:46.873Z
Commit: b02038bcd25d933ed9f114954e9b59bd6c45d71f
Is extension: true

# Metadata
width: 800
height: 600
frameRate: 15
numFrames: 205
swfVersion: 8
backgroundColor: #333333
isActionScript3: false
uncompressedLength: 1676033
Aaron1011 commented 1 year ago

Can you link to the SWF?