News for hackers. Stuff that matters.
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.
Re: by 0xndavd on Tuesday December 12, 2023 @07:45PM (#38621116)
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?

Re: by 0xndavd on Wednesday December 13, 2023 @06:49AM (#38625957)
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!

Re: by 0xndavd on Wednesday December 13, 2023 @11:02AM (#38629338)
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.
Re: by blueflow on Wednesday December 13, 2023 @04:48AM (#38624930)
In Chromium without hardware acceleration, i end up on a black page with no text or UI elements except for the source popup.
Re: by dylan604 on Tuesday December 12, 2023 @07:43PM (#38621098)
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).
Re: by 0xndavd on Tuesday December 12, 2023 @08:18PM (#38621394)
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.
Re: by david422 on Tuesday December 12, 2023 @10:50PM (#38622416)
The page crashes for me.
Re: by npunt on Wednesday December 13, 2023 @12:14AM (#38622988)
M3 Max gets like ~10fps in 5D and 0.5fps on 7D.