pygame-community / pygame-ce

🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
https://pyga.me
941 stars 156 forks source link

wasm: better wasm fencing #3163

Closed pmp-p closed 1 month ago

pmp-p commented 1 month ago

Each fence need invididual review wasi and web can be very different, in case of timers it was not clear how to make them work BOTH on wasi and web but it may be possible to run them from pump()

Let's assume defined(__EMSCRIPTEN__) || defined(__wasi__) means there is a way to do both and just __EMSCRIPTEN__ would mean unknown yet.