Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Isn't that what reactive ui trying to achieve? To only have a render function and have ui state sync according to the data?


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: