Hacker News new | past | comments | ask | show | jobs | submit login

> VDom is much like double buffering in video games, it was useful when video memory was scarce and access times were slow, but it has lost much of the appeal on modern HW.

It's funny to read this when Google Chrome has constant tearing on Windows.




Haven't used Chrome in years, but AFAIK screen tearing is caused by incorrect vsync settings. disabling HW acceleration can fix it because software rendering is synced to the screen refresh rate.

if you rendered your web app in an animationFrame in the allotted time (60hz usually, 1/60 of a second) you won't notice any flickering or tearing even without double buffering.

modern HW (screens and GPU) use complete frames, so flickering and tearing are not an issue if the writes are vsynced.


Vsync needs double buffering. You swap the buffers during vsync to kill tearing. You will have tearing whenever you update the currently scanned-out buffer (except when you do stuff like racing the beam).




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

Search: