Page 1 of 1

[14.21] Latency Issue

Posted: Fri Jan 06, 2017 6:10 pm
by ClawTheClouds
Ive started a headless linux server and no matter what i seem to try it suffers from really bad lag spikes, it is worse when there are more players online, but it even happens if there is just one player on. Latency usually is around 9ms for me and 30ish for other players and when it spikes it reaches around 180ms for everyone. It seems to happen randomly and there are no errors or notifications that lead me to believe something is wrong on my end.

here is the current log.
http://pastebin.com/piw9txWj

i start the server with this bash script

Code: Select all

factorio --start-server-load-latest "/root/.factorio/saves/SaveFile.zip" --port 34197 --server-settings /home/factorio/server-settings.json
and here is my server-settings.json

Code: Select all

{
  "name": "ClawTheClouds",
  "description": "CTC factorio server latest",
  "tags": ["CTC", "Vanilla"],

  "_comment_max_players": "Maximum number of players allowed, admins can join even a full server. 0 means unlimited.",
  "max_players": 0,

  "_comment_visibility": ["public: Game will be published on the official Factorio matching server",
                          "lan: Game will be broadcast on LAN"],
  "visibility":
  {
    "public": true,
    "lan": false
  },

  "_comment_credentials": "Your factorio.com login credentials. Required for games with visibility public",
  "username": "hidden",
  "password": "hidden",

  "_comment_token": "Authentication token. May be used instead of 'password' above.",
  "token": "",

  "game_password": "",

  "_comment_require_user_verification": "When set to true, the server will only allow clients that have a valid Factorio.com account",
  "require_user_verification": true,

  "_comment_max_upload_in_kilobytes_per_second" : "optional, default value is 0. 0 means unlimited.",
  "max_upload_in_kilobytes_per_second": 0,

  "_comment_minimum_latency_in_ticks": "optional one tick is 16ms in default speed, default value is 0. 0 means no minimum.",
  "minimum_latency_in_ticks": 6,

  "_comment_ignore_player_limit_for_returning_players": "Players that played on this map already can join even when the max player limit was reached.",
  "ignore_player_limit_for_returning_players": false,

  "_comment_allow_commands": "possible values are, true, false and admins-only",
  "allow_commands": "admins-only",

  "_comment_autosave_interval": "Autosave interval in minutes",
  "autosave_interval": 10,

  "_comment_autosave_slots": "server autosave slots, it is cycled through when the server autosaves.",
  "autosave_slots": 10,

  "_comment_afk_autokick_interval": "How many minutes until someone is kicked when doing nothing, 0 for never.",
  "afk_autokick_interval": 20,

  "_comment_auto_pause": "Whether should the server be paused when no players are present.",
  "auto_pause": true,

  "only_admins_can_pause_the_game": true,

  "_comment_autosave_only_on_server": "Whether autosaves should be saved only on server or also on all connected clients. Default is true.",
  "autosave_only_on_server": true,

  "_comment_admins": "List of case insensitive usernames, that will be promoted immediately",
  "admins": []
}
i was messing with mininmum latency in ticks to see if that did anything , at 0 it lagged , at 1 it lagged and now at 6 it laggs aswell. all seemed to have minimal to no change.


Any info is greatly appreciated , thank you.

Re: [14.21] Latency Issue

Posted: Fri Jan 06, 2017 6:21 pm
by Loewchen
There are several identical topics in this sub-forum already that can help you isolate your issue, first step would be to find out if it even is a latency issue or simply performance, to do that activated show_time_used_percent and show_fps in the debug settings (F4>F5).

Re: [14.21] Latency Issue

Posted: Fri Jan 06, 2017 6:46 pm
by ClawTheClouds
im fairly certain its a connection issue , just now 2 users were both lagged out and dropped. there are a ton of connection errors, here is the updated current log.

http://pastebin.com/VKVXtanH

fps ups hover around 60 for me and the other guy, we both have good pc's, still same issue.