ruffle-rs / ruffle

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

Slow performance on 4399.com only - https://www.4399.com/flash/43826_1.htm #16495

Open wsxarcher opened 1 month ago

wsxarcher commented 1 month ago

Describe the bug

Game works but performance are bad

Expected behavior

Play at normal speed

Content Location

https://www.4399.com/flash/43826_1.htm

Affected platform

Browser's extension

Operating system

Window 11

Browser

Edge/Chrome 125

Additional information

This game is part of a bigger effort to support 4399.com games. There might be other issues with this website, from how it handles Flash checks and many CORS issues. Unfortunately, some games cannot be easily debugged on desktop because the swf download other swf or do requests while logged in.

If Ruffle is not detected try to reload the page multiple times because of the known race condition on the Flash check. To avoid refreshing try this Tampermonkey user script 一键下载 flash 游戏 (greasyfork.org)

To solve these issues refers to previous issues such as:

wsxarcher commented 1 month ago

Game works well on desktop and ruffle demo wasm but on 4399.com it is slow.

game.zip

ruffle_desktop.exe game.swf --base https://s6.4399.com/4399swf/upload_swf/ftp5/haibo/20110629/3/
Dinnerbone commented 1 month ago

Ruffle seems to be running fairly fast here, frame times up to about 20ms for me. It's seemingly the browser not being able to request a new frame so often.

In Chrome profiler, it seems that the websites anti-debugging script is taking a lot of the time...