MustaphaTR / Romanovs-Vengeance

Romanov's Vengeance is an OpenRA mod based on Red Alert 2.
GNU General Public License v3.0
260 stars 30 forks source link

Massive lag in network + AI game (~5FPS) #88

Open DeeeeLAN opened 2 years ago

DeeeeLAN commented 2 years ago

Hi, I am not sure how to go about helping debug this issue. There were three of us playing against 4 AI over the network. All of us using the most recent release (7/7/22). For a significant amount of the game, it was crawling at a super low FPS. My assumption was there were too many units and structures and it was beyond what the engine could handle.

One possibility I was noticing that was kind of weird was I had built 10-15 dreadnoughts who were bombarding one of the enemy's bases, and the mini-map was constantly spamming red triangles in the area, I think every time one of the dreadnought missiles was shot down it was showing as a character lost on the mini-map.

Near the end after we had taken out 2-3 of the enemy bases the FPS picked back up a bit. I was also using the dreadnoughts a lot less at that point.

Are there any logs or anything I can share that could help diagnose?

MustaphaTR commented 2 years ago

Which map was that? There's a known lag issue that happens when units try to path to an area accessable by low bridges that are currently destroyed. Heidelberg is a map that this can happen, but that's a 2p map so can't be the map you had the issue with, but can still be the same thing.

Perf.log can give an idea on the reason, but that file is overrideen next time you open the game, unlike exceptions or sync logs. Tho, i guess you can recreate it by watching the Replay, or even better just send the Replay to me.

DeeeeLAN commented 2 years ago

Ah, that must have been it then, we were playing Arctic Circle and definitely had destroyed bridges all over the place.

MustaphaTR commented 2 years ago

Yeah, Arctic Circle is a map known for this issue. That was most likely it.

DeeeeLAN commented 2 years ago

We will try again with a non-bridge map and hopefully things work better. For reference, where are the logs and replay files saved? I am on Linux. I will grab them next time we have an issue so I can submit them if needed.

MustaphaTR commented 2 years ago

Log files should be in ~/.config/openra/logs on Linux.

Also note that this is only an issue with low bridges, high bridges aren't even destroyable at the first place currently.

DeeeeLAN commented 2 years ago

replay.tar.gz

Here is the replay, hope it helps. Slowdown starts a few minutes into it but you will know it when you see it.

bradleysimard commented 2 years ago

Can we get another compiled release soon?

The AI lag makes matches unplayable.

Also I can tell you it's not specifically related to bridges that are destroyed. I think it has more to do with water units.

MustaphaTR commented 2 years ago

I've been meaning for a new release for weeks now, but several upstream issues came up that prevented me from it. Currently i'm waiting for #20343 and related issues that were broken by the same PR to be fixed.

dnqbob commented 1 year ago

Can we get another compiled release soon?

The AI lag makes matches unplayable.

Also I can tell you it's not specifically related to bridges that are destroyed. I think it has more to do with water units.

You are correct, units being stuck by enclosed immovable actors can cause greater lags. see https://github.com/OpenRA/OpenRA/issues/20948. We are trying to fix that.