Page 1 of 1

Trine 2 Multiplayer Lag [SOLVED]

Posted: Wed Feb 13, 2013 12:28 am
by Nines
Hello. I have some problem with Trine 2 multiplayer. SP works fine and i have 20-40 fps on highest settings (except AA and 3D). But when i play in MP (host or not) i have only 5-10 fps and it's simply unplayble.

Thing is, i tried demo (right now and almost a year ago) and it works MUCH better then full version, even with some strange short FPS drops.

My specs - AMD 64 3000+ (single core), 2 gb, Radeon HD 6570 1 gb. Can you recommend me something? :)

Re: Trine 2 Multiplayer Lag

Posted: Wed Feb 13, 2013 11:09 am
by fb_jlarja
Nines wrote:Hello. I have some problem with Trine 2 multiplayer. SP works fine and i have 20-40 fps on highest settings (except AA and 3D). But when i play in MP (host or not) i have only 5-10 fps and it's simply unplayble.

Thing is, i tried demo (right now and almost a year ago) and it works MUCH better then full version, even with some strange short FPS drops.

My specs - AMD 64 3000+ (single core), 2 gb, Radeon HD 6570 1 gb. Can you recommend me something? :)


It's in the realm of possibility that the single core processor is causing slowdown. Is there any difference with lower graphics settings? I'm not sure how much they have effect on CPU load though.

If I recall correctly, the demo uses not quite as refined rendering and there are some other changes in the engine too. The graphics settings between demo and full game aren't directly comparable.

-JLarja

Re: Trine 2 Multiplayer Lag

Posted: Wed Feb 13, 2013 4:43 pm
by Nines
fb_jlarja wrote:
Nines wrote:Is there any difference with lower graphics settings?

I'm not sure. With Fraps i noticed that FPS is strangely unstable. 25>23>24>10>12>10>15>18>25>23>25> and again >10>12>13 etc. (high or low settings), even with minimal action on the screen.

And there is one more thing, when i tried to exit from the game to main menu, on the save screen game just reboot my system.

Re: Trine 2 Multiplayer Lag

Posted: Thu Feb 14, 2013 12:15 am
by Pista
Hello.
I have the same problem as Nines do. Running the game on an Intel Pentium 3.2GHz rig with 2GBs of RAM and a Geforce 9600 videocard.
In the single player portion of the game it runs fine, but in multiplayer it's unplayable (even on 640x480 resolution, LOWEST graphics settings) and have continuous audio-shuttering. (both on Linux and Windows)
The demo worked well and smooth and I expected the same from the full version :(

Can you suggest us some kind of fix, to eliminate this problem?

Regards,
Pista.

Re: Trine 2 Multiplayer Lag

Posted: Fri Mar 08, 2013 10:10 pm
by Nines
Well, i guess no one will help us here. :(

Re: Trine 2 Multiplayer Lag

Posted: Sun Mar 10, 2013 8:51 pm
by Pista
Sadly. :(

I bought the game based on my experience with the demo.

"It's in the realm of possibility that the single core processor is causing slowdown."

The Steam store page states: “Processor: 2.0 GHz CPU (Dual Core recommended)”.
The game runs fine only in single player-mode, the demo worked very smooth in multiplayer too. If Trine 2 needs a dual-core or better CPU, then please write it clearly down on the store-page, because "recommending" it is a little bit misleading.

I assume if it's only unplayable in multiplayer – the graphics are the same as in single player – there is a serious bug in the game or it is badly optimized ...


"If I recall correctly, the demo uses not quite as refined rendering and there are some other changes in the engine too. The graphics settings between demo and full game aren't directly comparable."

I didn't see any big visual differences between the demo and the retail version, but it's a little strange that the demo-versions runs better than the actual game, what you paid for.


Don't take me wrong, I like the Trine games – bought the first one too to support the developers –, but please fix this problem, 'cause it's more fun to play this game with your friends ...

Re: Trine 2 Multiplayer Lag

Posted: Mon Mar 11, 2013 8:14 am
by FB_Esa
Recommended system setup is supposed to be the system specs that run Trine 2 fluently. Sadly that doesn't include single CPU's :(

There isn't anything i can do to help you though, fixing this issue would mean we would have to revamp our engine. Which is both time consuming and really expensive :/

Re: Trine 2 Multiplayer Lag

Posted: Mon Mar 11, 2013 8:21 am
by fb_jlarja
Hello Nines and Pista

I don't really have any good answers, just some general suggestions.

Pista: Is your Pentium an old, single-core Pentium 4 or something newer? Are the problems (slow down and bugs in online mode, everything ok in single player) identical on both Windows and Linux?

Do you have some security software (virus scanner, firewall) or network acceleration software installed? The game itself shouldn't take a big hit running in online mode. I presume you have newest drivers and Windows updates installed. You could also try keeping an eye on Task Manager while playing (run the game in a window, unless you have multi-monitor setup) to see if some software is starting to use lots of processing power while Trine is in online mode (unfortunately, this isn't in any way conclusive way to test this).

We aren't aware of any bug that would cause performance issues in online multiplayer. If we were, we would fix it.

-JLarja

Re: Trine 2 Multiplayer Lag

Posted: Tue Mar 12, 2013 2:50 am
by Pista
Hello, thank you for your answers!

The CPU in my computer is a single core 3.2GHz P4 [link], with 2GB RAM.
Yes, the shuttering is the same on both under Linux and Windows.


I tested Trine 2 single- and multiplayer both on Windows and Linux.
The software environment is:

- Windows 7 SP1, with version 314.07 of the graphics driver from nvidia.
- OpenSUSE 12.2, with the latest proprietary drivers from nvidia. [version 313.26]
- under Windows I use 'Comodo Firewall' & 'Avast' antivirus; disabled both for the time of the test
- on Linux 'Nod32 Antivirus' is installed, disabled this one too

The game settings were:
Resolution: 1280x1024
Refresh rate: 60Hz
Anti-aliasing: disabled
VSync: disabled
Detail level: medium

On Windows:
- The CPU load looks similar with the DEMO in single and multiplayer, it runs smooth and fine. (the load tops around 80%, 35-45fps)
- The retail version behaves similarly in single player (approx. 80% CPU-load, 35-40fps), but in multiplayer it's consuming more resources, with average of 95-100% of CPU-load, 6-10fps
[screenshot]

On Linux:
- The Linux-version of the demo is failed to start ('missing executable')
- The retail version runs similarly like the Windows-version, consumes almost all of the CPU in multiplayer mode.
[screenshot]

Re: Trine 2 Multiplayer Lag

Posted: Tue Mar 12, 2013 9:42 am
by fb_jlarja
Pista wrote:Hello, thank you for your answers!

The CPU in my computer is a single core 3.2GHz P4 [link], with 2GB RAM.
Yes, the shuttering is the same on both under Linux and Windows.


I tested Trine 2 single- and multiplayer both on Windows and Linux.
The software environment is:

- Windows 7 SP1, with version 314.07 of the graphics driver from nvidia.
- OpenSUSE 12.2, with the latest proprietary drivers from nvidia. [version 313.26]
- under Windows I use 'Comodo Firewall' & 'Avast' antivirus; disabled both for the time of the test
- on Linux 'Nod32 Antivirus' is installed, disabled this one too

The game settings were:
Resolution: 1280x1024
Refresh rate: 60Hz
Anti-aliasing: disabled
VSync: disabled
Detail level: medium

On Windows:
- The CPU load looks similar with the DEMO in single and multiplayer, it runs smooth and fine. (the load tops around 80%, 35-45fps)
- The retail version behaves similarly in single player (approx. 80% CPU-load, 35-40fps), but in multiplayer it's consuming more resources, with average of 95-100% of CPU-load, 6-10fps
[screenshot]

On Linux:
- The Linux-version of the demo is failed to start ('missing executable')
- The retail version runs similarly like the Windows-version, consumes almost all of the CPU in multiplayer mode.
[screenshot]


Thanks for your detailed analysis. It seems that activating network game does consume significant CPU power. I did some quick testing with my Windows and Linux computers (deactivating cores, dropping frequency, running Trine on a single core) and it seems that even though Trine itself shouldn't consume much more CPU when online, the OS, drivers etc. do. I have no idea why demo is acting differently though.

We'll be setting up better testing environment, but at the moment it seems that minimum requirements listed in Steam are rather too optimistic for online multiplayer.

Edit: I talked to our network programmer and he suggested that different voice chat system (Speex) used in release version may be the reason why CPU load is higher on online multiplayer. You can turn voice chat off by editing options.txt. The option is named "UseSpeexVoice". Options.txt is located in %appdata%\Trine2 on Windows (just copy paste that to Explorer's address bar) and in ~/.frozenbyte/Trine2 on Linux.

I briefly tested this on Linux (I couldn't reproduce the problem on Windows. Probably because I couldn't disable extra cores) and changing the option does seem to fix the issue. Let me know if this helps you too.

-JLarja

Re: Trine 2 Multiplayer Lag

Posted: Tue Mar 12, 2013 11:21 pm
by Pista
fb_jlarja, thank you for your help!

Editing the settings file-value 'UseSpeexVoice' from:

Code: Select all

setOption(networkModule, "UseSpeexVoice", true)

to

Code: Select all

setOption(networkModule, "UseSpeexVoice", false)

solved the issue both under Linux and Windows.
The game now runs fine and smooth.


Thank you for your quick answer and great support. :)

Regards,
Pista.

Re: Trine 2 Multiplayer Lag

Posted: Wed Mar 13, 2013 7:53 am
by fb_jlarja
Pista wrote:solved the issue both under Linux and Windows.
The game now runs fine and smooth.


Good to hear :D .

-JLarja

Re: Trine 2 Multiplayer Lag

Posted: Sun Mar 17, 2013 4:21 pm
by Nines
Works for me too. Thank you. :)