martinbwg / Pixel-Tanks

1 stars 3 forks source link

Lag Update *partial* Release! #523

Closed cs6413110 closed 6 months ago

cs6413110 commented 6 months ago

BC I CANT STAP WORKING ON KAHOOT(they wont let me) so I'm speeding up the lag update stuff and TEMPORARILY moved lag server to main(I can revert easily) even though it's not fully coded.

Technically it's "playable".

Here is what works: 1.) Fast terrain load 2.) Delta Updates 3.) Bandwidth Optimization 4.) Render updates 5.) Chat

Here is what needs work: 1.) Postponed updates 2.) Update fusion

Q: WHy DId thIS TaKe sO lOnG AaRON? A: Very complicated math and cringe.

C(complaint): iT'Z sTiLL lAgG; U WaSTeD A mOntH 4 NoThInG: A: This lag update heavily reduces bandwidth per message and the server-side work to send that data. Obviously if the internet is bad enough there is absolutely nothing I can do. I'm trying to do as much as possible to fix lag. The update is only partially implemented. There are 2 more things that will have a big impact on lag so just wait. Here is what we currently have. The delta updates and bandwidth optimization mentioned earlier reduce the size of messages. For example:

Here are the known bugs:

cs6413110 commented 6 months ago

https://stackoverflow.com/questions/55188328/does-nodejs-websockets-ws-module-implement-backpressure

CelestialKnight7 commented 6 months ago

peorks :)