|
|
|
|
|
by hopfog
787 days ago
|
|
I'm building a JavaScript game in my own engine, which in retrospect was a big mistake considering the game utilizes a lot of multithreading (the game is "Noita meets Factorio" so it's required for the simulation). You can only share memory between threads using a SharedArrayBuffer with raw binary data and you need special headers from the web server to even enable it. This means that I've had to write a lot of convoluted code that simply wouldn't be necessary in a non-browser environment. Other than that I really like that I can piggyback on the browser's devtools and that I can use the DOM for the UI. |
|