Live data from Hacker News

Show HN: Unity like game editor running in pure WASM

raverie-us.github.io

31–40 of 166 posts

Re: Show HN: Unity like game editor running in pure WASM

#31
post #21

Earlier quoted context omitted.

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.

I thought you guys recently rewrote everything to be in WebGL instead?

I think their UI is react but the actual drawing canvas is WebGL.

Re: Show HN: Unity like game editor running in pure WASM

#32

It's been sitting on "downloading runtime" for a very long time. That makes me think this must be a challenge to host. What are the pain points to hosting it?

The runtime is currently about 37MB, and when served with gzip it’s around 11MB compressed. Once it’s downloaded it should be cached and quickly startup. I think a lot of the challenge is going to be spent getting the binary to be smaller, or potentially breaking it up into separate individually loadable parts.

Re: Show HN: Unity like game editor running in pure WASM

#33

The Spaces feature reminds me of how Movie Clips were used in the old days of Macromedia Flash, where I'd put many different often-independently-running clips overlayed on top of each other to encapsulate different behavior. Of course Spaces sounds even more flexible. Very neat. I'm not seeing documentation linked in the readme or within the github project. Are there how-tos and tutorials anywhere?

Not yet, the port is still a work in progress. For the old Zero docs you can go here:

https://github.com/zeroengineteam/ZeroDocs

Re: Show HN: Unity like game editor running in pure WASM

#34

Very slow load in Firefox – stuck on “Downloading Runtime”. No error in console, and the .wasm file is stuck in the loading stage in the Network tab – a few minutes first time, 20 seconds now (with cache cleared). No such problems in Chromium. Weird! Overall though it's a cool project. Personally I would prefer if it was a desktop app as well (with better integrations and less overhead – and certainly with hi-res sup…

I haven’t done a lot of testing with Firefox, I’ll take a look!

Re: Show HN: Unity like game editor running in pure WASM

#36

This is hitting my gpu super hard (Radeon Pro 560X, near-4k) with just the default ball scene. Frame rates are dipping very low just orbiting around. Does anyone know if there could be a WebGL optimization issue?

It almost sounds like it’s not using your dedicated graphics card. Do other WebGL demos run alright for you?

Re: Show HN: Unity like game editor running in pure WASM

#37
Trevor! I loved your CS elective at DigiPen on designing programming languages with grammars.

Many of the students you taught are working on Minecraft now. I'm using so many fundamentals taught by you and my time at DigiPen when designing the Minecraft scripting API today.

Glad to see you're still rocking it.

Re: Show HN: Unity like game editor running in pure WASM

#38
post #4

So I take it that this would be the highest performing + most customizable engine for web deployment due to its deep WASM nature? What about rendering, does it use WebGPU?

I'd guess Threejs or Babylonjs would be because they're web first but regardless super cool project!

Re: Show HN: Unity like game editor running in pure WASM

#39
post #21
post #19

Earlier quoted context omitted.

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

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.

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

#40

This is hitting my gpu super hard (Radeon Pro 560X, near-4k) with just the default ball scene. Frame rates are dipping very low just orbiting around. Does anyone know if there could be a WebGL optimization issue?

It almost sounds like it’s not using your dedicated graphics card. Do other WebGL demos run alright for you?

Yes I can run about 200 jellyfish in this demo with similar GPU load, resolution, and frame rate. https://akirodic.com/p/jellyfish/

Maybe not the most helpful comparison haha. Anyways, great work, this is very impressive

Post reply on HN