When a massive snake dies, or in certain cases with the /purge command, it's possible for a severe lag spike to occur. In the worst case I've observed with the /purge command, the server froze for a full second, and the client stuttered for a 1/4 of a second.
While the circumstances that cause lag on death may never actually come up, I'd like to investigate potential optimizations for it. Profile each step in the dropCandyOnDeath() function to identify the issue, and make sure actions are dispatched correctly.
When a massive snake dies, or in certain cases with the
/purge
command, it's possible for a severe lag spike to occur. In the worst case I've observed with the/purge
command, the server froze for a full second, and the client stuttered for a 1/4 of a second.While the circumstances that cause lag on death may never actually come up, I'd like to investigate potential optimizations for it. Profile each step in the
dropCandyOnDeath()
function to identify the issue, and make sure actions are dispatched correctly.