If you’re seeing these CPU spikes while locally testing multiplayer
I definitely see that in my game too, but I think it’s just the computer getting slow from rendering multiple copies of the game at once, in addition to the server and VSCode etc
So I would check if it feels slow between multiple players on different computers. It’s especially bad in my case when it’s Firefox and Chrome instead of two different Chrome versions
Hmm. There are some users who don’t experience the lag and some take some time before it starts happening, so that could also be part of it. But anyways, I appreciate your help. I’ll let y’all know if I can figure anything out.
These are with the mousedown event, but they have similar effects.
It sounds like ondrag, onmousemove, and onmousedown each call RequestAnimationFrame (apparently people with higher refresh rates are more likely to experience the bug for this reason), which in turn somehow block the websocket packets.