my next optimization goal
next i’m trying to completely move away from socket.io (current networking library), to pure websockets, which is much more reliable and faster..
note that swordbattle was always built around socket.io, and getting rid of completely won’t be so easy. it might take a week or 2, but this will probably eliminate the disconnection issue (which is now much better after the revert) .
some of my other games (like spicywar) use pure websockets, and it’s worked really well.
now since I reverted the code due to the disconnection issue, the first optimization was actually removed. don’t worrry, since I have all the code for it safe, and once the transition to ws is complete, it will be added.
same goes to the new evols and some of the new statistics features, which will also be added back shortly after the transition. I will update u guys about this transition here.