Open Ghabry opened 1 year ago
About the state of SIMD: This patch is rolled out since a while for ynoproject and they have complaints since months that the Player fails to start.
Though the issue is not SIMD support in the browser, but old CPUs from 10 years ago with lack of certain SIMD instructions. :sweat_smile:
Apologies if this is off-topic, but recently I've been hearing reports of iOS players not being able to run the SIMD-less version of ynoproject's Player, due to the presence of SIMD code. Is it something fixable in the foreseeable future, or does the team need more feedback from players? Thanks!
We only accept bug reports when they are reproducable in the official web player: https://easyrpg.org/play/master
Problem is that WASM SIMD support is still a bit experimental and most browsers got it in 2022. So is imo risky to roll this out as it will break likely on some devices.
There is this patch by libreoffice: https://cgit.freedesktop.org/libreoffice/core/commit/?id=d5f5f0984510d6c1b453e31c1ad58fb29fed278b
And here some benchmarks:
lol. nope. Better luck next timenode provided by emscripten is too old. System Node works >.>I marked the interesting ones with a
<-
. Top: No SIMD. Bottom: SIMDBitmap:
Unfortunately the normal Blit does not become faster :/. This is the typical operation.
Draw:
(Crashes with out of memory in both builds)
Font:
Pixel Format:
Interestingly ARGB and ABGR become twice as fast but we already figured this out years ago and use RGBA and BGRA by default.
Text: