Strange lag
Moderator: Moderators
Strange lag
Hello,
I installed a new linux on a clean HD, and installed Spring + BA ... When I run it from the OS (launching Spring + "Test the game"), everything seems fine. When I launch a game from springlobby in single player mode, I get "lag" issues : the mouse behaves like if the CPU was overloaded, but it's at 2% ... It seems I have delay between action and sound, too... Like 0.5 sec lag...
I tried and disabled a lot of things, no change... Any clue ?
Thanks
I installed a new linux on a clean HD, and installed Spring + BA ... When I run it from the OS (launching Spring + "Test the game"), everything seems fine. When I launch a game from springlobby in single player mode, I get "lag" issues : the mouse behaves like if the CPU was overloaded, but it's at 2% ... It seems I have delay between action and sound, too... Like 0.5 sec lag...
I tried and disabled a lot of things, no change... Any clue ?
Thanks
- Attachments
-
- infolog.txt
- (21.69 KiB) Downloaded 8 times
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Strange lag
Are you are running with a bot when you launch from springlobby? (and presumably, not when you use sandbox mode)
If so, the bot is probably bugged. I'm told KAI works atm.
If so, the bot is probably bugged. I'm told KAI works atm.
Re: Strange lag
Likely caused by your window manager.
Esp. when you got compositing (3d effects) enabled, rendering doesn't happen instantaneous.
Compositing is mostly disabled when the window runs in fullscreen.
Esp. when you got compositing (3d effects) enabled, rendering doesn't happen instantaneous.
Compositing is mostly disabled when the window runs in fullscreen.
Re: Strange lag
I run it fullscreen, and there is no lag when I run it locally... Still investigating... I have a good connexion... I don't understand why it's different locally, but maybe u'm too focused on that...
Re: Strange lag
Your infolog shows you use an ATI card. Have you tried a different driver (open source <-> commercial from ATI)? I had very bad experience with strange effects from ATI drivers in the past (not limited to spring).
Do you use the normal or the multithreaded spring binary? I have very good experience with using the mutlithreaded spring binary on linux with BA (with compositing enabled and running in windowed mode on ubuntu 12.04/64, KDE desktop). Maybe you can try this?
Network is not likely, since when you start the host yourself, all in-game communication should be local.
Also, you seem to load several user widgets. Have you tried to start without them (move them to a different directory temporarily) and see if one of those causes the trouble?
Do you use the normal or the multithreaded spring binary? I have very good experience with using the mutlithreaded spring binary on linux with BA (with compositing enabled and running in windowed mode on ubuntu 12.04/64, KDE desktop). Maybe you can try this?
Network is not likely, since when you start the host yourself, all in-game communication should be local.
Also, you seem to load several user widgets. Have you tried to start without them (move them to a different directory temporarily) and see if one of those causes the trouble?
Re: Strange lag
I use the normal binary : on my previous install, MT had no sound... I did try to remove several widgets, but i'm gonna try to remove them all. But as it works locally but not from springlobby, I suspect something in the files springlobby uses for spring...? I'm gonna look for another ATI drivers for my linux...?
Re: Strange lag
For sound problems, you can try to switch to alsa (I switched due to probs not related to MT version a while ago): http://springrts.com/wiki/FAQ:trouble#I ... an_i_do.3F
May be anyway a good idea for playing spring, since some of my friends had problems with this, too.
Regarding ati drivers: that's just a guess from me, since I lack first hand experience (switched due to several problems to nvidia quite some time ago).
[edit]:
I guess the easiest thing is to move the widgets and try again...
If I start spring via lobby or from the binary, most difference in log files is in widget/gadget loading...
May be anyway a good idea for playing spring, since some of my friends had problems with this, too.
Regarding ati drivers: that's just a guess from me, since I lack first hand experience (switched due to several problems to nvidia quite some time ago).
[edit]:
I guess the easiest thing is to move the widgets and try again...
If I start spring via lobby or from the binary, most difference in log files is in widget/gadget loading...
Re: Strange lag
I changed ATI driver, i removed Widgets... No change. I suspect a problem in the X server config. I'll let you know. Any idea welcome.
Re: Strange lag
Sorry I led you in the wrong direction 
The only other differences in the logs I see here are:

The only other differences in the logs I see here are:
- Springlobby started game binds an UDP socket when connecting to local server
- Some mod options (gadgets) are set different when I start via spring directly
- Some widgets from the mod (BA) are differently enabled/disabled
Are you sure it's only 2%? Seems really low; I get much higher values (at least on one core) here.JoeChip wrote:... like if the CPU was overloaded, but it's at 2% ...
Re: Strange lag
Yes, sure : 2%... just two comm doing nothing...
Re: Strange lag
your description of the lag is incomplete, english language covers multiple meanings in this word.
Re: Strange lag
Sorry for my english.
The mouse cursor is 0.5 second behind where it should be. The sound is delayed too... No connexion lag or CPU load.
I'm gonna remove all and try again... Later. A .rpm package installing spring and springlobby would be fine...
The mouse cursor is 0.5 second behind where it should be. The sound is delayed too... No connexion lag or CPU load.
I'm gonna remove all and try again... Later. A .rpm package installing spring and springlobby would be fine...
Re: Strange lag
try /hardwarecursor 1
and how are you able to detect 0.5sec delay in sound? Spring games don't got any speaking characters in cutscenes or similar and even then (just check lips-sound sync of recent games) ...
and how are you able to detect 0.5sec delay in sound? Spring games don't got any speaking characters in cutscenes or similar and even then (just check lips-sound sync of recent games) ...
Re: Strange lag
With hardware cursor, the cursor moves fine, but for example the "virtual building" showed when choosing the place for the building is around 0.5 sec delayed. For the sound, when i make the comm attack ground, the sound isn't sync with the shot. But I dunno (and didn't say) the value of the delay, but it's coherent to assume it's the same delay...
Re: Strange lag
is the sound ahead?
if so it is 100% the window manager, and I told you to check the settings of it ...
if so it is 100% the window manager, and I told you to check the settings of it ...
Re: Strange lag
Oh! I didn't think about it before you told me, and than I disobeyed you, momI told you to check the settings of it ...

I came back today to tell I made a test showing that the problem comes from the window manager. I guess you won't be interested by the source of the problem, when i'll have found it ? As it's a window manager problem ? ... mom ? ............ MOM ??

BTW i dunno if the sound is ahead. And anyway there"s a bug somewhere in spring/springlobby, as the test game doesn't really test the settings of the game. And obviously there is a way to fix the problem by configuring spring/springlobby...
Re: Strange lag
What about this ?[f=0000000] SDL version: 1.2.15
[f=0000000] GL version: 4.2.12217 Compatibility Profile Context 12.104
[f=0000000] GL vendor: ATI Technologies Inc.
[f=0000000] GL renderer: ASUS EAH5450 Series
[f=0000000] GLSL version: 4.20
[f=0000000] GLEW version: 1.6.0
[f=0000000] Video RAM: total 745MB, available 944MB
[f=0000000] GL info:
haveARB: 1, haveGLSL: 1, ATI hacks: 1
FBO support: 1, NPOT-texture support: 1, 24bit Z-buffer support: 0
maximum texture size: 16384, compress MIP-map textures: 0
maximum SmoothPointSize: 63, maximum vec4 varying/attributes: 32/29
maximum drawbuffers: 8, maximum recommended indices/vertices: 16777215/2147483647
number of UniformBufferBindings: 75 (64kB)
[f=0000000] VSync disabled