issues with multiplayer and large maps

issues with multiplayer and large maps

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

andre
Posts: 58
Joined: 21 Jun 2008, 04:52

issues with multiplayer and large maps

Post by andre »

Hi,
Here is a rough overview of my problem:

- When i'm in a Multiplayergame with Mearth or Dworld everyting is ok from the time between finished loading and all players are ready - then after the gamestart everything gets quite "unsmooth":
1) you see a moving unit "jumping from one place to another" instead of a constant moving
2) If you place the camera on the top border of the map, zoomed about half way out and then press "shift+down-arrow" (so that the camera moves fast down from the top border to the lower border of the map in about 1-2 seconds) you can see the camera also "jumping from one place to another" instead of a constant moving
3) the mouse also "hangs" about 2 times a second for some milliseconds
then the longer the battle is ingame the less gets these "lagging" (but it never goes completely away)
While this happens my ping stays always beneath 500ms and the fps between 150 and 250 so i don't think this is caused by netlag or too high settings (reducing graphic settings didn't make any difference)

Then if i'm watching the replay of one of those games on Mearth or Dworld it lags, too but not that much as it did when i watched it "live"

Although everything is fine on a 16 player Tabula or DSD (nothing of these issues 1, 2, 3 appear there...)
Also everything is ok when i'm starting Mearth or Dworld in Singleplayer mode or Host a game myself (But with no other players inside)

Used hardware:
Intel C2Q Q6600
Nvidia 8800GT
2GB Ram
OS: Gentoo
Nvidia-Drivers: 180.37
DE: KDE4.2.1 - Turning desktop-effects on/off makes no difference - happend also with plain X without any DE/WM - just spring and springlobby running.

I don't think that this problem is hardware-related as it runs fine on the same machine with windows xp, anyway i have no idea where to start searching for the problem
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: issues with multiplayer and large maps

Post by Beherith »

2 times a second lag spikes=slowupdate lags.
Spring simulates everything in 32 frames per second. It does the animation and the fast stuff for 15 frames, then 1 frame for the slow stuff like pathing and LOS calculations. Repeat twice per second.
If your FPS is over 30, then it just interpolates the rendering frames between the fast updates.
Im annoyed by this as well, but I think nothing can be done about this :(
andre
Posts: 58
Joined: 21 Jun 2008, 04:52

Re: issues with multiplayer and large maps

Post by andre »

But why does it only happen on those two maps and when i'm not playing alone and not with windows?
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: issues with multiplayer and large maps

Post by zerver »

Because slowupdate may take more or less time depending on how large the map is and other factors such as number of units and players.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: issues with multiplayer and large maps

Post by imbaczek »

bumpwater shorewaves have this effect, too. disable them.
User avatar
SpliFF
Posts: 1224
Joined: 28 Jul 2008, 06:51

Re: issues with multiplayer and large maps

Post by SpliFF »

i have an 8800GT as well and I get this problem with shadows enabled. Disabling shadows or turning the quality right down fixed it for me.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: issues with multiplayer and large maps

Post by zerver »

Using the GML version will also fix this because it makes the rendering run more or less independent of the sim... if you have at least 2 cpu cores.

http://zerver.net/spring.zip
andre
Posts: 58
Joined: 21 Jun 2008, 04:52

Re: issues with multiplayer and large maps

Post by andre »

Many ideas but in first place i think zerver's "solution" is the reason why it works for me on windows but not with linux at same settings (i use the gml-version on windows..)

which revision of your gml repo can i use to build it here (so that i stay in sync with 78.2.1)?

but i'll try disabling shorewaves and shadows, too..

edit: shadows were already off, so just checking it without shorewaves..

edit2: disabling shorewaves has solved the problem (at least last game it didn't appear again)
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: issues with multiplayer and large maps

Post by zerver »

Glad to hear you solved it.

Regarding gmlbranch, you could try building HEAD, but I'm not sure if it will compile or run. Linux is largely untested.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: issues with multiplayer and large maps

Post by smoth »

sounds like low fps/lag
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Re: issues with multiplayer and large maps

Post by hunterw »

SpliFF wrote:i have an 8800GT as well and I get this problem with shadows enabled. Disabling shadows or turning the quality right down fixed it for me.
shadows are very glitchy for me :| cant play with them on because my screen is always flashing and all kinda werid shit
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: issues with multiplayer and large maps

Post by MidKnight »

which graphics card, hunter? I have a similar problem on my hd 4870 :(
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: issues with multiplayer and large maps

Post by aegis »

happened to me on windows until I restricted spring to a single core.
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Re: issues with multiplayer and large maps

Post by hunterw »

MidKnight wrote:which graphics card, hunter? I have a similar problem on my hd 4870 :(

8800gts
User avatar
hunterw
Posts: 1838
Joined: 14 May 2006, 12:22

Re: issues with multiplayer and large maps

Post by hunterw »

aegis wrote:happened to me on windows until I restricted spring to a single core.
how the !#%!#%%! do you do this and yes i have searched forums

do i just need diff drivers?
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: issues with multiplayer and large maps

Post by slogic »

Download Process Explorer. Right click on spring.exe process, select Set affinity.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: issues with multiplayer and large maps

Post by zerver »

slogic wrote:Download Process Explorer. Right click on spring.exe process, select Set affinity.
Use task manager, right-click on spring.exe, Set affinity...
slogic
AI Developer
Posts: 626
Joined: 17 Mar 2008, 19:03

Re: issues with multiplayer and large maps

Post by slogic »

zerver wrote:Use task manager, right-click on spring.exe, Set affinity...
Under XP?!
User avatar
Otherside
Posts: 2296
Joined: 21 Feb 2006, 14:09

Re: issues with multiplayer and large maps

Post by Otherside »

yes you can set core affinity's in xp :p
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: issues with multiplayer and large maps

Post by CarRepairer »

Springloader does this for you automatically!

Yes, it still works, but it doesn't do the other thing it's meant to - starting spring for you in fullscreen/windowed according to rules in the XML. But the core restriction still works.

viewtopic.php?p=258182#p258182
Post Reply

Return to “Help & Bugs”