4 ms·
I am working on something similar to this, though I've implemented a renderer like that of a game, with all visible elements being rendered at 30 fps, foregoing
by mambodog 15y ago
I am working on something similar to this, though I've implemented a renderer like that of a game, with all visible elements being rendered at 30 fps, foregoing DOM manipulation for writing HTML text directly to innerHTML[1], and culling non-visible elements. This avoids the slight jerkiness that exists when scrolling on the linked page.
[1] http://www.youtube.com/watch?v=_RRnyChxijA&t=22m56s http://www.youtube.com/watch?v=_RRnyChxijA&t=22m56s
- MrHoatzin 15y agoAnother reason for the flicker is that Hobo Lobo doesn't calculate a realtime scroll, it has a repeating 50ms timeout that listens to see if horizontal scroll has happened, and then recalculates all the positioning. I guess I could set it up to fire more often, but I felt 50ms was a good tradeoff of performance vs quality.