xyz If your client and server are polling as fast as possible, then the "problem" is with your networks and has nothing to do with Godot
How come using "ping" command in terminal produces constant results and are not in sort of same margins that im getting on either of my godot application examples?
There is nothing wrong with the network as i can reproduce the "pings" ICMP, from one to other computer with close to similar results. in this case pc to laptop and vice versa 1-3ms... Not 100ms in one way and 8ms in other way.
xyz It could also be a case that a thread is not getting enough of a time slice and/or not being put on a separate core. This again is the responsibility of the OS and Godot can do nothing about it.
This could be the problem, as the problem occures only on low spec machine, while the high spec machine as server gives out good pings, and low spec server gives out delayed pings.
xyz You can try the other alternative I've suggested earlier, namely running the custom main loop and do everything in the main thread.
Are you talking about this? https://docs.godotengine.org/en/stable/classes/class_mainloop.html How is is different from running separate scripts? It seems like it is just a plain script that extends mainloop class? So in this case if i put the server code in this script, do i poll in the _process or create a thread like we did yesterday?
The whole idea behind this exercise is to eventually make a lobby system, where players host a game, game sends address to masterlist, other players query master list for hosted games, make connections to the hosted games, get game info, view all games in a browser and join. In other words - server browser.
I have figured out the masterlist thing, and game info thing, now i just wanted to show players the ping between their machine and the hosted game machine, so that they would be able to join the ones that are closer - lesser latency.