It obviously works since you don't get massive stacks of aircraft flying through each other when they're on an attack run.Tobi wrote:AFAIK it's been there from the start, but I wouldn't be surprised at all if it totally doesn't work and just consumes CPU.
Why does air cause lag?
Moderator: Moderators
Re: Why does air cause lag?
Re: Why does air cause lag?
But it should definitely be a fixed small distance and not based on LOS.
- MightySheep
- Posts: 243
- Joined: 11 Nov 2007, 02:17
Re: Why does air cause lag?
The main reason I lag and crash so much is air patrol. I know people who spam fighters just to make me crash when i'm kicking there ass. As soon as fighters start spamming I go to 1 fps and 100% cpu. It would be great if you just turned that LOS off on BA.
Re: Why does air cause lag?
I believe it is not only collision detection, but also the code that finds suitable targets to attack. Many optimizations depend on that units don't move much, but the aircraft not only move, they are fast. The poor QuadField will have to be constantly updated.
Re: Why does air cause lag?
That, and the LOS updates which are O(n^2) due to the explicit
representation of the LOS map (and much more expensive than
the quadfield updates since there are far fewer quads than LOS
table entries).
representation of the LOS map (and much more expensive than
the quadfield updates since there are far fewer quads than LOS
table entries).
Re: Why does air cause lag?
Collision detection was already removed from air in BA.
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
Re: Why does air cause lag?
Yeah, we made IW air units fly through each other to avoid strange behaviour where aircraft would fly into each other, and patrolling aircraft would over time destroy themselves. There is still notable lag when a number of aircraft are airborne.
- Aeon_Illuminate
- Posts: 42
- Joined: 14 Feb 2008, 20:30
Re: Why does air cause lag?
Back in the day when nukes collide with airplanes, I was playing a speedmetal of course and had 15 nuclear silos right in front of massive amounts of aircraft factory. I didn't knew about the collision back then. As usual, I toyed with my enemy until they reaches certain point so I get worthy game. It got to the point where I had to end it before they become more powerful. So I fired all nukes and suddenly BAM! Because it was sort of in the center, it wiped it all pretty much. Stupid part was I told them about it because it was so weird at the time.cong06 wrote:Sort of a side question:Argh wrote:Because of collision detection for aircraft, and sometimes because they use a really long LOS.
When was Collision detection ever used? I remember nukes flying into my planes (oh it was so annoying...great way to clear your base...have construction planes repair a nuke fac, while you're firing them...)
But I remember no incident where collision was used between aircraft...
Or did it simply keep them from flying on top of each other?
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
Re: Why does air cause lag?
aircraft with poor LOS struggle, though - especially when targetting ground units with no radar coverage. They'll regularly forget the location of the unit they were attacking (I know that they'll place a ground fire option at the last known location, but this can often be counter-productive). It's also bad for dogfighters who lose track of their targets, especially when you have a faster fighter trying to take down a slower bomber. You really need reasonable LOS for those aircraft to perform reliably.
- MightySheep
- Posts: 243
- Joined: 11 Nov 2007, 02:17
Re: Why does air cause lag?
Nukes hitting planes was removed a long time ago. That happened to me too on DSD.
Re: Why does air cause lag?
Nukes hitting aircraft has nothing to do with aircraft collision. Nukes are projectiles and have different behaviour.
Re: Why does air cause lag?
Nukes were made to not collide with friendlies at all in BA and CA. This has nothing to do with planes not colliding with oneanother though, as KDR pointed out.
Only one plane in 20 chugging CPU with massive LoS is a lot less significant than every single one chugging CPU with massive LoS.
Its probably worthwhile to include unarmed, durable radar/recon planes that you can send with your force.Warlord Zsinj wrote:aircraft with poor LOS struggle, though - especially when targetting ground units with no radar coverage. They'll regularly forget the location of the unit they were attacking (I know that they'll place a ground fire option at the last known location, but this can often be counter-productive). It's also bad for dogfighters who lose track of their targets, especially when you have a faster fighter trying to take down a slower bomber. You really need reasonable LOS for those aircraft to perform reliably.
Only one plane in 20 chugging CPU with massive LoS is a lot less significant than every single one chugging CPU with massive LoS.
-
- Imperial Winter Developer
- Posts: 3742
- Joined: 24 Aug 2004, 08:59
Re: Why does air cause lag?
That's a good point, but annoying that we'd be forced into that.
It'd be annoying to have the dogfighting capability of a whole airforce reduced simply because your spotter aircraft was the unlucky one that the ground aa targetted first. It just makes aircraft use unpredictable.
It'd be annoying to have the dogfighting capability of a whole airforce reduced simply because your spotter aircraft was the unlucky one that the ground aa targetted first. It just makes aircraft use unpredictable.
- Evil4Zerggin
- Posts: 557
- Joined: 16 May 2007, 06:34
Re: Why does air cause lag?
Aren't armed units auto-targeted first?
- SwiftSpear
- Classic Community Lead
- Posts: 7287
- Joined: 12 Aug 2005, 09:29
Re: Why does air cause lag?
Yes, but only if there are more than 1 unit in range already. The first unit that entered range must be killed before another unit is targeted. So basically, you just need to make your scouts fly in front and they will take the first wave of attacks... at least until they are dead.Evil4Zerggin wrote:Aren't armed units auto-targeted first?
Re: Why does air cause lag?
Is this LoS issue present with radar also? Doesnt radar use a lower resolution, and thus presumably you can make it reach further before you get this lag?
If so, you could get rid of radar hover (through lots of targeting upgrades if there is no other way?) and put radar on all planes- though it means you'd be fighting radar blobs which is 'less cool'.
Alternatively you could lower the resolution LoS in general, im sure that'd help to.
In the end though these are workarounds to an issue that should be fixed engine-side.
If so, you could get rid of radar hover (through lots of targeting upgrades if there is no other way?) and put radar on all planes- though it means you'd be fighting radar blobs which is 'less cool'.
Alternatively you could lower the resolution LoS in general, im sure that'd help to.
In the end though these are workarounds to an issue that should be fixed engine-side.