microseconds -> millisecond

This commit is contained in:
ikpil 2023-03-25 12:52:39 +09:00
parent 62903cba9e
commit dcc13b6199
4 changed files with 6 additions and 6 deletions

View File

@ -596,7 +596,7 @@ public class RecastDemo
sample.update(sample.getInputGeom(), buildResult.Item1, buildResult.Item2); sample.update(sample.getInputGeom(), buildResult.Item1, buildResult.Item2);
sample.setChanged(false); sample.setChanged(false);
settingsUI.setBuildTime((Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMicrosecond); settingsUI.setBuildTime((Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMillisecond);
toolsUI.setSample(sample); toolsUI.setSample(sample);
} }
} }

View File

@ -271,7 +271,7 @@ public class CrowdProfilingTool
} }
} }
crowdUpdateTime = (endTime - startTime) / TimeSpan.TicksPerMicrosecond; crowdUpdateTime = (endTime - startTime) / TimeSpan.TicksPerMillisecond;
} }
private void moveMob(NavMeshQuery navquery, QueryFilter filter, CrowdAgent ag, AgentData agentData) private void moveMob(NavMeshQuery navquery, QueryFilter filter, CrowdAgent ag, AgentData agentData)

View File

@ -676,7 +676,7 @@ public class CrowdTool : Tool
m_agentDebug.vod.normalizeSamples(); m_agentDebug.vod.normalizeSamples();
// m_crowdSampleCount.addSample((float) crowd.getVelocitySampleCount()); // m_crowdSampleCount.addSample((float) crowd.getVelocitySampleCount());
crowdUpdateTime = (endTime - startTime) / TimeSpan.TicksPerMicrosecond; crowdUpdateTime = (endTime - startTime) / TimeSpan.TicksPerMillisecond;
} }
private void hilightAgent(CrowdAgent agent) private void hilightAgent(CrowdAgent agent)

View File

@ -183,7 +183,7 @@ public class DynamicUpdateTool : Tool
long t1 = Stopwatch.GetTimestamp(); long t1 = Stopwatch.GetTimestamp();
float? hitPos = dynaMesh.voxelQuery().raycast(sp, ep); float? hitPos = dynaMesh.voxelQuery().raycast(sp, ep);
long t2 = Stopwatch.GetTimestamp(); long t2 = Stopwatch.GetTimestamp();
raycastTime = (t2 - t1) / TimeSpan.TicksPerMicrosecond; raycastTime = (t2 - t1) / TimeSpan.TicksPerMillisecond;
raycastHit = hitPos.HasValue; raycastHit = hitPos.HasValue;
raycastHitPos = hitPos.HasValue raycastHitPos = hitPos.HasValue
? new float[] { sp[0] + hitPos.Value * (ep[0] - sp[0]), sp[1] + hitPos.Value * (ep[1] - sp[1]), sp[2] + hitPos.Value * (ep[2] - sp[2]) } ? new float[] { sp[0] + hitPos.Value * (ep[0] - sp[0]), sp[1] + hitPos.Value * (ep[1] - sp[1]), sp[2] + hitPos.Value * (ep[2] - sp[2]) }
@ -468,7 +468,7 @@ public class DynamicUpdateTool : Tool
bool updated = dynaMesh.update(executor).Result; bool updated = dynaMesh.update(executor).Result;
if (updated) if (updated)
{ {
buildTime = (Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMicrosecond; buildTime = (Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMillisecond;
sample.update(null, dynaMesh.recastResults(), dynaMesh.navMesh()); sample.update(null, dynaMesh.recastResults(), dynaMesh.navMesh());
sample.setChanged(false); sample.setChanged(false);
} }
@ -720,7 +720,7 @@ public class DynamicUpdateTool : Tool
Console.WriteLine(e); Console.WriteLine(e);
} }
buildTime = (Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMicrosecond; buildTime = (Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMillisecond;
sample.update(null, dynaMesh.recastResults(), dynaMesh.navMesh()); sample.update(null, dynaMesh.recastResults(), dynaMesh.navMesh());
} }