Re:
by DarmokJalad1701 on Tuesday December 12, 2023 @07:27PM
(#38620947)
Looks cool ... it does lock up my browser for several seconds on startup though - 100% CPU usage.
[ Parent
| on HN ]
Thank you. These web apps work better (or only) with "Hardware acceleration" on. It should make use of the GPU. If it still persists I'd recommend the native binaries, they are always going to be faster.
Re:
by iainmerrick on Wednesday December 13, 2023 @04:22AM
(#38624712)
It's very strangely browser-dependent -- it runs really slowly in Safari, chugs a bit on Chrome, runs very smoothly in Firefox.
Maybe I don't fully understand what's going on here, but what causes it to run slowly? For a 5D cube, I would have thought you only need to transform 32 points. That surely isn't much work per frame. Are you rendering with WebGL?
ncube started as a native app. The web port was achieved through Web Assembly. It's possibly that WASM is not well supported in all the browsers yet.
Re:
by iainmerrick on Wednesday December 13, 2023 @08:50AM
(#38627301)
I think WASM support is decent these days but if all the rendering is in software that might explain it.
You also mention GPU acceleration, but I believe WebGPU support is still a bit spotty, if that’s what you’re using. WebGL 2 is widely supported and WebGL 1 is nearly universal.
Edit to add: I hope I’m not being overly critical -- the app looks very nifty and it’s cool that you were able to bring it to the web at all!
Thanks for the feedback, and you are not being overly critical at all! I appreciate the suggestions. I might need to explore my options better because I think even though the web version is a side product it's what people prefer the most (no installation step, etc.), so perhaps it's worth digging deeper into it and make the web app as smooth and compatible as possible.
In Chromium without hardware acceleration, i end up on a black page with no text or UI elements except for the source popup.
That seems natural, and I totally sympathize with the browser. Browsers are just barely able to handle 3D. Going past that is surely wrecking their minds in the same way it does yours (at least mine).
That's right, it's a very promising technology, however. ncube started as a native app and making a web port was a plus, using Web Assembly.
Re:
by quickthrower2 on Wednesday December 13, 2023 @06:25AM
(#38625771)
Browsers can absolutely ace 3D, there should be zero issues.
The page crashes for me.