Blood actor cause lag in GZDoom

Wed Apr 28, 2021 2:03 am

When I playing MAP20 from EPIC2.WAD (2010) in Vanilla DOOM 2, it works normally as usual.
These multiple Cyberdemons getting crushed/squished after I walk/run through the specific location, then it's start lagging over and over when Cyberdemons are bleeding too much blood.

I tried to replace the built-in Blood actor with this code.
Code:
ACTOR BloodKai : Blood Replaces Blood
{
}
It surprisingly reduced the lag, although I didn't change anything in Blood actor.

Can anyone explain this issue?

Re: Blood actor cause lag in GZDoom

Wed Apr 28, 2021 3:07 am

When it starts to lag, do profilethinkers -t 10 in console. It will output top ten times spent on updating actors. Compare reports with and without your change.

Re: Blood actor cause lag in GZDoom

Wed Apr 28, 2021 6:31 am

Thank you very much.
Before: SmallBloodPool2 and MediumBloodSpot actor called 1217 times.
After: There is no "SmallBloodPool2" and "MediumBloodSpot".
I bet there's a mod that already replaces the built-in Blood actor.

Re: Blood actor cause lag in GZDoom

Wed Apr 28, 2021 10:56 am

These come from a mod. What mods are you loading, you can see in the console.

Re: Blood actor cause lag in GZDoom

Wed Apr 28, 2021 9:55 pm

Graf Zahl wrote:These come from a mod. What mods are you loading, you can see in the console.
Call of Doom: Black Warfare (Vanilla version)
https://www.moddb.com/mods/call-of-doom ... eapons-mod

I always like to play DOOM with real life guns mod, and I helped the original author to fix this mod in February.
Although I am an amateur, but it works as expected.
Until I playing MAP20 from EPIC2.WAD, I think this mod is still contains few wreckage leftover codes because this mod is based on the older mod named "Real Guns Advanced".
I removed these leftover codes to reduce the lag, but the original author is busy in real life.