• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Legacy GM Networking Lag Spikes

R

Resurgam

Guest
I am attempting to make my first networking game on GM, but I am having large lag spikes very frequently.

In my code the client sends the sever the current_time, server sends back that time, and client compares that to the current_time, giving me my ping.

The game is running at 60fps (both server and client) and moving to 30 fps helps nothing.
I am using a tcp connection and 127.0.0.0 ip adress

gmlatency.PNG

the game window is 400*250, x axis is just under 7 seconds of time, and y is the ping, so anything over 250 doesn't show. (the base line is 16/17 ping, perfect for 60fps)

This issue doesn't happen anywhere else on my PC, browsing or playing games

Any ideas what could be causing this to happening?
 
Top