3 ms·
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
by iainmerrick 3y ago
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?
- 0xndavd 3y agoncube 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.
- iainmerrick 3y agoI 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!
- 0xndavd 3y agoThanks 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.