News for hackers. Stuff that matters.
Re:Show HN: Unity like game editor running in pure WASM by iddan on Tuesday September 26, 2023 @03:23PM (#37664556)
I fail to understand why not use the native browser rendering engine, or at least SVG for the UI. It must be cheaper in resources (memory, network, cpu), easier to make accessible and easier to render
Re:Show HN: Unity like game editor running in pure WASM by jjcm on Tuesday September 26, 2023 @03:27PM (#37664621)
Anecdotally, in the very early days Figma rendered its UI entirely in canvas, but we eventually switched over to React for the UI. It ended up being far easier for development cycles and for accessibility/integration with existing browser features.
Re:Show HN: Unity like game editor running in pure WASM by solardev on Tuesday September 26, 2023 @03:35PM (#37664730)
I thought you guys recently rewrote everything to be in WebGL instead?
Re:Show HN: Unity like game editor running in pure WASM by rileyphone on Tuesday September 26, 2023 @03:42PM (#37664830)
Go inspect the source and see for yourself, the UI is normal HTML.
Re:Show HN: Unity like game editor running in pure WASM by pests on Tuesday September 26, 2023 @03:44PM (#37664852)
I think their UI is react but the actual drawing canvas is WebGL.
Re:Show HN: Unity like game editor running in pure WASM by TrevorSundberg on Tuesday September 26, 2023 @03:57PM (#37665018)
I always thought it was so cool Figma just rendered to a canvas! Oddly enough I ran into this at my previous job doing browser isolation when we got a bug report that Figma wasn’t displaying properly in our browser.

Makes sense to switch the rest of the UI to react though, just for how many people know it.

Re:Show HN: Unity like game editor running in pure WASM by TrevorSundberg on Tuesday September 26, 2023 @03:31PM (#37664677)
The main reason was just because this engine was entirely built for native platforms originally in C++ (not for the Web). This is a port, hence why the UI is running in WASM/WebGL.