logoalt Hacker News

javcasasyesterday at 9:16 PM5 repliesview on HN

Nope. Used to render on the terminal like a game engine.

https://x.com/trq212/status/2014051501786931427


Replies

oerstedyesterday at 9:22 PM

This kind of immediate-mode rendering is quite standard for TUIs. Although immediate-mode rendering tends to be significantly simpler and use less memory than retained-mode rendering, at the cost of some redundant computation. So I am not sure if this is the reason for the bloat.

It’s possible that it doesn’t play well with JS garbage collection, since it recreates the whole UI structure for every frame (which tends to not to be an issue in the languages immediate-mode is usually employed).

But yes it’s a bit more akin to game renderings than web rendering. Which can be totally fine if done well.

show 1 reply
ux266478yesterday at 9:47 PM

How on earth are you spending more than 50us on a UI like this from start to finish? What the actual hell? 11ms to construct a scenegraph of this complexity? I don't even know what to say to that.

fg137yesterday at 10:00 PM

Do game engines constantly have buffer issues?

show 1 reply
lstoddyesterday at 9:27 PM

I sorta remember Quake console running on an 486dx2 ..

show 1 reply
krappyesterday at 9:24 PM

Frankly that's an insult to gamedev. Literally every game engine I can think of could do better. Probably even Unreal Engine could do better.

show 1 reply