BeardedManStudios / ForgeNetworkingRemastered

See various forks, also please join the Forge Community fork of Forge Alloy! -> https://github.com/ForgeAlloyCommunity/ForgeAlloy
https://twitter.com/FarrisFaulds
Apache License 2.0
1.49k stars 309 forks source link

join menu changes so disconnected hosts are removed. #312

Closed theWill closed 4 years ago

theWill commented 5 years ago

Other changes:

theWill commented 5 years ago

EDIT - hmmm, actually fixedUpdate might not actually fire less than update upon researching it. We could do locking on some variable so the update loop doesnt execute multiple times in a row.

One other thing I haven't done. I think we should move all the logic from Update() to FixedUpdate(). You can notice that the update() loop fires so quickly that it actually does multiple updates to the pings. You cool with that? @phalasz

phalasz commented 5 years ago

I think adding an extra second or so randomness to the timers should fix that, so it could fire as many updates, but only ping the servers when the next update time comes.

theWill commented 4 years ago

I am closing this. I ended up reverting to mostly use your code due to issues I had after further testing. Thanks for humoring me at the time. @phalasz