Hacker News new | ask | show | jobs
by chill1234 83 days ago
Isn't that what reactive ui trying to achieve? To only have a render function and have ui state sync according to the data?
1 comments

Games do not sync data, they literally say what should be drawn on the screen, from scratch, 60+ times per second. They are in control of the entire process. They do not need to deal with DOM manipulation overhead because there is no DOM.
Yes, in web to always draw from scratch, it would be slow, therefore exists reactive UI, so people can program like drawing from scratch but less slow.