Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix poor HTML5 vfilelength performance. #416

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

AliceLR
Copy link
Owner

@AliceLR AliceLR commented Jan 17, 2024

Found via the mzvplay.txt conversion of the Mackey Mounse cartoon, which uses FREADn several times per frame. For some reason, each FREADn would take ~30ms per call (per Lancer-X), which I found is caused by the fstat used in POSIX platform_filelength. Due to the way frame delays are handled by mzvplay.txt, it would immediately try to load the next frame, causing hangs.

@AliceLR AliceLR merged commit 011fca9 into master Jan 17, 2024
14 checks passed
@AliceLR AliceLR deleted the fix-emscripten-vfilelength branch January 17, 2024 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant