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

It's like Google Maps. I didn't look under the cover but typically the way these things work is there's a resolution hierarchy and it loads bits dynamically as you zoom in. The zoom here is a bit slow (it doesn't let you slam into the painting at warp speed) so there is likely a bit of latency hiding as it loads high res tiles.


The trick to make it super fast is to predict where the user might be viewing 1 second from now.

If an animation is in progress, that's an easy prediction.

If the user is using a mouse, they'll generally scroll or pan but not both.

If the user is on a touch screen, again the gestures are limited.

When you have your predictions, you start loading the those things.




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

Search: