How to optimize network code

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By TheJollyReaper

So this is my first attempt at networking (and game development in general), and it is extremely laggy and jittery. I found a reddit thread that looked like it would be helpful, but I don’t understand the theoretical concepts (extrapolated position, lerptime) or how to begin getting the code started. At the moment I have physics process (delta) checking for input, which I guess is the cause of the problem.

Can someone help me understand the process or point me at the right direction?

The video just looks like low FPS to me. Try running only one client and run the second client on another machine.

Calinou | 2020-08-01 16:42

Ran a 2nd client on my phone and it actually was much, much smoother.

I thought it was a network issue because when i run 2 .exe’s on my computer and connect them through the local network (, they both run perfectly. I would only have issues trying to connect through the GOTM web player.

I guess my computer can’t handle two instances of the webplayer running the game?

TheJollyReaper | 2020-08-01 17:11