Hacker News new | ask | show | jobs
by ladyanita22 886 days ago
Can you have an electron app without HTML elements? A pure WebGPU + Webassembly program?
1 comments

YEah, but why wouldn't you want HTML CSS to render your ui.

I'm going to revisit electron / nw.js for games again this year. Last time I tried 4-5 years ago I could not get smooth animation with request animation frame.

Performance.

I recommend pixijs.

But it depends what you do, smooth animations of some elements is possible with html. But in my case it got complex and html was the bottleneck. Now I have the same assets in Pixi and it runs around 100× faster. No more lags, no stuttering. No more html.

(Allmost, some static content is still HTML, but that is fine, as long as the DOM does not get modified)