How to Animate Multiplayer Cursors
liveblocks.io
How to Animate Multiplayer Cursors
1–10 of 64 posts
Re: How to Animate Multiplayer Cursors
#2Re: How to Animate Multiplayer Cursors
#3Re: How to Animate Multiplayer Cursors
#4The animations on the blog itself are incredible. Would love to read something in the future about how you guys put this together (i.e. what frameworks, components, tooling is used to generate these blogs).
Re: How to Animate Multiplayer Cursors
#5Re: How to Animate Multiplayer Cursors
#6Instead of sampling the mouse position every 100ms, you'd save off all the mouse positions, and then send the latest batch every 100ms. The other side would then replay the exact positions, just delayed by 100ms. It'll end up with the same latency as these motion smoothing approaches, while only using slightly more bandwidth.
Re: How to Animate Multiplayer Cursors
#7I like the potential of this approach as it lets you get smoother results than just CSS transitions yet doesn't require you to use a RAF loop-based animation library.
Re: How to Animate Multiplayer Cursors
#8But I'm torn by this. The spline approach seems to look the most accurate. But when all three approaches are shown at the same time at the end, I think the spring animation might look more visually pleasing. But then, if the spring approach is only degrees better than CSS transitions, is it really worth all the extra code?
Re: How to Animate Multiplayer Cursors
#9There's another approach that might work better. Instead of sampling the mouse position every 100ms, you'd save off all the mouse positions, and then send the latest batch every 100ms. The other side would then replay the exact positions, just delayed by 100ms. It'll end up with the same latency as these motion smoothing approaches, while only using slightly more bandwidth.