Lags and connection errors in multiplayer

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
lacko
Engineer
Engineer
Posts: 2
Joined: 03 Jun 2007 23:13
Contact:

Lags and connection errors in multiplayer

Post by lacko »

Hi!
I was play on internet whith friend and whole day(about 100 years in game) it was good. But then the game was going to slow down and at my side connection errors happens almost every 10 mins(I wasn't be a server).
We played 1024*2048 map and at we have almost 750 trains together. Can anybody help us with that errors and game lags(for example by change some variable in console)?
Buses & Trucks smells...
maartena
Route Supervisor
Route Supervisor
Posts: 470
Joined: 11 Jul 2003 04:53
Location: California, U.S.A.

Post by maartena »

Your computer is most likely too slow to keep up with the server, and the 750 trains going across it. Once you fall behind too much, you desync out.

What kind of hardware are you playing this map on?
Guess what! I got a fever! And the only prescription...... is MORE COWBELL!
lacko
Engineer
Engineer
Posts: 2
Joined: 03 Jun 2007 23:13
Contact:

Post by lacko »

Servers Comp: amd Athlon64 3000+ 1GB RAM
My Comp: amd Semrpon 3100+ 1.5GB RAM

Except that, if I save our multiplayer game and I load it in single player everything is OK.
Maybe is problem with connection, but i don't think so. Servers connection is 100Mbit/100Mbit and my is 5Mbit/512Kbit.
Buses & Trucks smells...
SyncViews
Engineer
Engineer
Posts: 38
Joined: 13 May 2007 12:31
Location: UK

Post by SyncViews »

there is a command "Net_Frame_Freq".
In the console if a client is slow it says to try increaing the value. The default is "Net_Frame_Freq 0" so you could try setting it to a higher value.

Ive never had the need to play with this though so I'm not sure if it realy makes a diffrence.
wision
Engineer
Engineer
Posts: 5
Joined: 18 Feb 2005 15:17
Location: brno/presov
Contact:

Post by wision »

yeap.. i was the server and i tried different values from 1 to 50 and nothing changed.. only with really high values, the game felt delayed for me.. i really wonder what's causing disconnecting and lags for client because both computers can easily handle 750 trains and we both got connection which can handle ottd (at least i think so..)
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

Post by Rubidium »

1) do you use ships AND YAPF for ships?
2) what kind of processor do you have? OpenTTD only uses 1 core, so when you have a quad core and you're playing at 25% CPU you cannot go any faster.
3) MP games need more CPU because we can't do as much pathfinder caching as can be done in SP (otherwise clients would desync on connect)
4) connection needs more CPU because you have to 'play' the frames that have past on the server since it made the savegame and got downloaded to the client within 500 game ticks, otherwise your computer is "too slow" and you'll be disconnected.
wision
Engineer
Engineer
Posts: 5
Joined: 18 Feb 2005 15:17
Location: brno/presov
Contact:

Post by wision »

1) we use only trains
2) server is athlon64 3000+ and client sempron 3100+ (both single core)
during the game, ottd eat 50% of my cpu (a64) which is not that much... dunno about client but i think it's same for him..
just for the record.. week ago we played with 0.5.2rc1 with ~100 road vehicles, ~700 trains, ~30 ships, ~100 aircrafts on 1024x1024 and we didn't have any problem.. 8 clients playing..
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 29 guests