Refactor SWWMHandler profiling routines.
This commit is contained in:
parent
ba6a01a190
commit
f6b891c9fe
7 changed files with 104 additions and 74 deletions
|
|
@ -313,15 +313,13 @@ extend Class SWWMHandler
|
|||
}
|
||||
bprofiletics = profiletics = (e.Args[0]<=0)?10:e.Args[0];
|
||||
profiling = true;
|
||||
worldtick_ms = 0;
|
||||
worldthingspawned_ms = 0;
|
||||
worldthingdestroyed_ms = 0;
|
||||
worldthingdied_ms = 0;
|
||||
worldthingdamaged_ms = 0;
|
||||
worldthingrevived_ms = 0;
|
||||
checkreplacement_ms = 0;
|
||||
checkreplacee_ms = 0;
|
||||
Console.Printf("Gathering data for %d tic(s)...",bprofiletics);
|
||||
for ( int i=0; i<8; i++ )
|
||||
{
|
||||
prof_ms[i] = 0;
|
||||
prof_avg[i] = 0;
|
||||
prof_calls[i] = 0;
|
||||
}
|
||||
Console.Printf("Gathering data for %d tic%s...",bprofiletics,(bprofiletics>1)?"s":"");
|
||||
return;
|
||||
}
|
||||
if ( e.IsManual ) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue