4 ms·
I don't know man, I really feel the difference when natively scrolling in a webpage that has everything rendered already, vs things that load and change as you
by Aardwolf 2y ago
I don't know man, I really feel the difference when natively scrolling in a webpage that has everything rendered already, vs things that load and change as you scroll. I have a free-flying scrollwheel. Native feels much better, faster and responsive.
- geocar 2y agoDo you play video games? They've got a good trick: Send the velocity of the scrollwheel instead of what the client thinks its y-position is. Fast mice can give this to you at 100hz, but most USB mice are delivering data much slower. Remember the server knows what time it is and what the RTT is so it can compute the correct row number and send frames at frequency. You can also send a little bit more than 60 lines to help hide the latency at the start of scroll, and if you need more you're probably scrolling so fast you wouldn't notice some deliberate motion blur. I guarantee if the server can send a million rows a second, it can definitely receive one sample and send 100 rows 100 times a second no problem, and you know what? You can also scale that down under less-than-ideal network conditions trivially helping those users who would absolutely prefer to get the result on the screen faster once they've stopped scrolling than to be waiting for TCP buffers to uncork. Like I said, I still think about this...