mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-31 13:00:59 +00:00
- do thinker profiling of internal dynlights only when they are present
There is no point to output zero calls and/or handle such case in profiling stats calculation
This commit is contained in:
parent
78c5a8ae92
commit
f5d2063613
1 changed files with 12 additions and 9 deletions
|
@ -150,6 +150,8 @@ void FThinkerCollection::RunThinkers(FLevelLocals *Level)
|
||||||
}
|
}
|
||||||
} while (count != 0);
|
} while (count != 0);
|
||||||
|
|
||||||
|
if (Level->lights)
|
||||||
|
{
|
||||||
// Also profile the internal dynamic lights, even though they are not implemented as thinkers.
|
// Also profile the internal dynamic lights, even though they are not implemented as thinkers.
|
||||||
auto &prof = Profiles[NAME_InternalDynamicLight];
|
auto &prof = Profiles[NAME_InternalDynamicLight];
|
||||||
prof.timer.Clock();
|
prof.timer.Clock();
|
||||||
|
@ -161,6 +163,7 @@ void FThinkerCollection::RunThinkers(FLevelLocals *Level)
|
||||||
light = next;
|
light = next;
|
||||||
}
|
}
|
||||||
prof.timer.Unclock();
|
prof.timer.Unclock();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
struct SortedProfileInfo
|
struct SortedProfileInfo
|
||||||
|
|
Loading…
Reference in a new issue