forked from mirror/DotRecast
microseconds -> millisecond
This commit is contained in:
parent
62903cba9e
commit
dcc13b6199
|
@ -596,7 +596,7 @@ public class RecastDemo
|
|||
|
||||
sample.update(sample.getInputGeom(), buildResult.Item1, buildResult.Item2);
|
||||
sample.setChanged(false);
|
||||
settingsUI.setBuildTime((Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMicrosecond);
|
||||
settingsUI.setBuildTime((Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMillisecond);
|
||||
toolsUI.setSample(sample);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -676,7 +676,7 @@ public class CrowdTool : Tool
|
|||
m_agentDebug.vod.normalizeSamples();
|
||||
|
||||
// m_crowdSampleCount.addSample((float) crowd.getVelocitySampleCount());
|
||||
crowdUpdateTime = (endTime - startTime) / TimeSpan.TicksPerMicrosecond;
|
||||
crowdUpdateTime = (endTime - startTime) / TimeSpan.TicksPerMillisecond;
|
||||
}
|
||||
|
||||
private void hilightAgent(CrowdAgent agent)
|
||||
|
|
|
@ -183,7 +183,7 @@ public class DynamicUpdateTool : Tool
|
|||
long t1 = Stopwatch.GetTimestamp();
|
||||
float? hitPos = dynaMesh.voxelQuery().raycast(sp, ep);
|
||||
long t2 = Stopwatch.GetTimestamp();
|
||||
raycastTime = (t2 - t1) / TimeSpan.TicksPerMicrosecond;
|
||||
raycastTime = (t2 - t1) / TimeSpan.TicksPerMillisecond;
|
||||
raycastHit = 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]) }
|
||||
|
@ -468,7 +468,7 @@ public class DynamicUpdateTool : Tool
|
|||
bool updated = dynaMesh.update(executor).Result;
|
||||
if (updated)
|
||||
{
|
||||
buildTime = (Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMicrosecond;
|
||||
buildTime = (Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMillisecond;
|
||||
sample.update(null, dynaMesh.recastResults(), dynaMesh.navMesh());
|
||||
sample.setChanged(false);
|
||||
}
|
||||
|
@ -720,7 +720,7 @@ public class DynamicUpdateTool : Tool
|
|||
Console.WriteLine(e);
|
||||
}
|
||||
|
||||
buildTime = (Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMicrosecond;
|
||||
buildTime = (Stopwatch.GetTimestamp() - t) / TimeSpan.TicksPerMillisecond;
|
||||
sample.update(null, dynaMesh.recastResults(), dynaMesh.navMesh());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue