move DotRecast.Core.RcTelemetry

This commit is contained in:
ikpil 2023-07-01 13:05:38 +09:00
parent 8bc3afa2ec
commit 43bfc9a5a0
17 changed files with 19 additions and 7 deletions

View File

@ -19,12 +19,10 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using DotRecast.Core;
namespace DotRecast.Recast
namespace DotRecast.Core
{
public class RcTelemetry
{

View File

@ -1,6 +1,6 @@
using System;
namespace DotRecast.Recast
namespace DotRecast.Core
{
public readonly struct RcTelemetryTick
{

View File

@ -43,7 +43,7 @@ namespace DotRecast.Detour.Crowd
return _maxTimeToFindPath;
}
public Dictionary<string, long> ExecutionTimings()
public Dictionary<string, long> ToExecutionTimings()
{
return _executionTimings;
}

View File

@ -16,6 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using System.Linq;
using DotRecast.Core;
using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -17,6 +17,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -16,6 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -17,6 +17,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
using DotRecast.Recast;
namespace DotRecast.Detour.Dynamic.Colliders

View File

@ -21,6 +21,7 @@ using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using DotRecast.Core;
using DotRecast.Detour.Dynamic.Colliders;
using DotRecast.Detour.Dynamic.Io;
using DotRecast.Recast;

View File

@ -132,7 +132,7 @@ public class CrowdProfilingTool
ImGui.Text($"Max time to enqueue request: {crowd.Telemetry().MaxTimeToEnqueueRequest()} s");
ImGui.Text($"Max time to find path: {crowd.Telemetry().MaxTimeToFindPath()} s");
List<Tuple<string, long>> timings = crowd.Telemetry()
.ExecutionTimings()
.ToExecutionTimings()
.Select(e => Tuple.Create(e.Key, e.Value))
.OrderBy(x => x.Item2)
.ToList();

View File

@ -1,4 +1,6 @@
namespace DotRecast.Recast
using DotRecast.Core;
namespace DotRecast.Recast
{
public class RecastBuilderResult
{

View File

@ -17,6 +17,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
using static DotRecast.Core.RcMath;
using static DotRecast.Recast.RcConstants;

View File

@ -20,6 +20,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using DotRecast.Core;
namespace DotRecast.Recast
{

View File

@ -19,6 +19,7 @@ freely, subject to the following restrictions:
*/
using System;
using DotRecast.Core;
namespace DotRecast.Recast
{

View File

@ -21,6 +21,7 @@ freely, subject to the following restrictions:
using System;
using System.Collections.Generic;
using System.Linq;
using DotRecast.Core;
namespace DotRecast.Recast
{

View File

@ -17,6 +17,7 @@ freely, subject to the following restrictions:
*/
using System.Collections.Generic;
using DotRecast.Core;
using DotRecast.Recast.Geom;
namespace DotRecast.Recast

View File

@ -16,6 +16,7 @@ freely, subject to the following restrictions:
3. This notice may not be removed or altered from any source distribution.
*/
using DotRecast.Core;
using NUnit.Framework;
namespace DotRecast.Recast.Test;