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

> Pixel-smooth vertical scrolling by poking the CRTC on timed interrupts to modify the character height dynamically, so as to squash a row at the top and expand a row at the bottom to shift the image with pixel precision (contradicting the received wisdom that the CRTC could only scroll character cells).

How frustrating that even today that is very hard for quite a few environments. I am working on something that requires a very smooth horizontal scroll of a large canvas in the browser. So far jagged edges are my lot, most tricks only work in a small subset of the cases.



Ah, browsers. Vsync timing is basically impossible to guarantee with them. It's dependent on which browser, browser version, which OS, and I suspect even which graphics card and driver (because OpenGL is affected by those).

I use this to asses:

https://www.vsynctester.com/

but this doesn't give me a feeling that all browsers in common use will do "buttery smooth" any time soon:

https://www.vsynctester.com/firefoxisbroken.html


Thank you for that, I wasn't aware that site existed, already confirmed some of my worst suspicions. What we are working on is a music application that horizontally scrolls a score drawn on a canvas. Smooth scrolling is quite essential to be able to keep to the beat (see: https://news.ycombinator.com/item?id=24615125)




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

Search: