Skip to content
Snippets Groups Projects
Commit eaacb64d authored by namishere's avatar namishere
Browse files

Update PS_UpdateTickStats to correctly update metric history for pre and post thinkframe hooks

parent 039df0d3
Branches
Tags
2 merge requests!2355fix newer versions of mixerx,!1932Implement perfstats options for LUAh_PreThinkFrame and LUAh_PostThinkFrame
...@@ -646,9 +646,20 @@ void PS_UpdateTickStats(void) ...@@ -646,9 +646,20 @@ void PS_UpdateTickStats(void)
if(cv_perfstats.value >= 3 && PS_IsLevelActive()) if(cv_perfstats.value >= 3 && PS_IsLevelActive())
{ {
int i; int i;
for (i = 0; i < thinkframe_hooks_length; i++) if (cv_perfstats.value == 3)
{ {
PS_UpdateMetricHistory(&thinkframe_hooks[i].time_taken, true, false, false); for (i = 0; i < thinkframe_hooks_length; i++)
PS_UpdateMetricHistory(&thinkframe_hooks[i].time_taken, true, false, false);
}
else if (cv_perfstats.value == 4)
{
for (i = 0; i < prethinkframe_hooks_length; i++)
PS_UpdateMetricHistory(&prethinkframe_hooks[i].time_taken, true, false, false);
}
else if (cv_perfstats.value == 5)
{
for (i = 0; i < postthinkframe_hooks_length; i++)
PS_UpdateMetricHistory(&postthinkframe_hooks[i].time_taken, true, false, false);
} }
} }
if (cv_perfstats.value) if (cv_perfstats.value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment