Armageddon General Discussion Board

General => Code Discussion => Topic started by: Pariah on September 18, 2020, 06:36:21 AM

Title: Ping, game connection
Post by: Pariah on September 18, 2020, 06:36:21 AM
Is there an in game command to check your ping or connection to the game?

I've noticed that while my internet speeds are good 100mbps sometimes the game will lag like crazy.
Title: Re: Ping, game connection
Post by: rinthrat on September 18, 2020, 06:48:12 AM
If it lags like crazy it's usually the server itself, or sometimes some hop on the way there that neither you or staff has control over.

It also lags every day at the same time (36 minutes before you posted) for a minute or two - that's a backup running and it's expected.
Title: Re: Ping, game connection
Post by: CoreyTX on September 18, 2020, 02:28:40 PM
This is a purely text based game.. I am not sure why it should ever lag server side, especially if its in the cloud with a top provider?  AWS uptime is like 99.96%.

Corey
Title: Re: Ping, game connection
Post by: mansa on September 18, 2020, 03:12:01 PM
Quote from: CoreyTX on September 18, 2020, 02:28:40 PM
This is a purely text based game.. I am not sure why it should ever lag server side, especially if its in the cloud with a top provider?  AWS uptime is like 99.96%.

Corey

The core heartbeat of ArmageddonMUD is DikuMUD, and it uses that codebase for how commands get sent and received to the players.  If there's something hampering serverside, like having to deal with 7000 mobs in a single room, it may affect inputs and outputs of the players.

DIKU isn't quite designed for multithreading, AFAIK.
Title: Re: Ping, game connection
Post by: Pariah on September 18, 2020, 05:20:45 PM
Yeah I was trying to dog the game, I just was curious if there was a command that could check ping or game connection so you could figure out when might not be the best time to do things that required good response.

Like if the game is going to be laggy, might not be the best time to go hunting dangerous critters ect.
Title: Re: Ping, game connection
Post by: mansa on September 18, 2020, 05:27:02 PM
Quote from: Pariah on September 18, 2020, 05:20:45 PM
Yeah I was trying to dog the game, I just was curious if there was a command that could check ping or game connection so you could figure out when might not be the best time to do things that required good response.

Like if the game is going to be laggy, might not be the best time to go hunting dangerous critters ect.

My test is this.

Spamwalk a direction three times, and in the middle of spamwalking type "look <direction>".  If there's some lag between typing "look <direction>" and the response from the game, that's a good indicator of the response times from player input.