Why is XTA slow (unplayable)? - Page 2

Why is XTA slow (unplayable)?

Hearken back to the days of yore and enjoy the first major Spring module!

Moderators: Moderators, Content Developer

User avatar
Jools
XTA Developer
Posts: 2814
Joined: 23 Feb 2009, 16:29

Re: Why is XTA slow (unplayable)?

Post by Jools »

Local sounds puts all unitsounds in customparams and plays them via lua based on the conditions in-game, for example if the explosion is within LOS but also if it's in water or in lava. It generally has no issues with normal bullets, but if you have 50 pyros attacking other 50 pyros, then it will slow down the game.

But on the other hand, it also reduces noise pollution as there will be less amount of sounds played in total.
User avatar
Deadnight Warrior
Posts: 183
Joined: 08 Jun 2009, 17:59

Re: Why is XTA slow (unplayable)?

Post by Deadnight Warrior »

FLOZi wrote:S44 does SetWatchWeapon for machineguns and Explosion() for each MG bullet (and there are more than shown, actual bullets are invisible and we emit tracers) without any issues.
But you don't do Spring.PlaySound(...) on every gadget:ProjectileCreated(...) event do you? Which is exactly what local sounds does and that kills CPU with, let's say, 50 Pyros firing their flamethrowers.
User avatar
Jools
XTA Developer
Posts: 2814
Joined: 23 Feb 2009, 16:29

Re: Why is XTA slow (unplayable)?

Post by Jools »

Deadnight Warrior wrote: Which is exactly what local sounds does and that kills CPU with, let's say, 50 Pyros firing their flamethrowers.
Ok, stop it. This thread was about the recent slow-down as posted by OP, none of those games were played with local sounds enabled, and it's default only in svn version and not the multiplayer one that everybody plays.

Edit: I now made that gadget better, it now filters away some of those events. But there's always that philosophical question: do you want to to have code in the synced part of the gadget that filters away packages, or do you want to have less stuff in synced and instead do the filtering in the unsynced part? Because if you have code in the unsynced part then not everybody must lag if there is lag. But it creates more traffic between the gadget parts.
Post Reply

Return to “XTA”