Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions StressTesting/Assets/Scripts/Navigation/PathQueryQueueECS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ public void CopyResultsTo(ref BufferArray<PolygonIdElement> agentPaths, ref Comp
var resultNodes = new NativeSlice<PolygonId>(m_ResultNodes, resultPathInfo.begin, resultPathInfo.size);
var agentPathBuffer = agentPaths[index];

var pathLength = math.min(resultNodes.Length, agentPathBuffer.Length);
var pathLength = resultNodes.Length;
for (var j = 0; j < pathLength; j++)
{
var id = new PolygonIdElement { Value = resultNodes[j] };
if (j < agentPathBuffer.Length)
agentPathBuffer[j] = id;
else
agentPathBuffer.Add(id);
agentPathBuffer.Add(id); //agent path buffer will be set to the largest size ever used... does it make sense to resize to what we're currently using?
}

var navigator = agentNavigators[index];
Expand Down
5 changes: 2 additions & 3 deletions StressTesting/Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"com.unity.entities": "0.0.12-preview.15",
"com.unity.entities": "0.0.12-preview.21",
"com.unity.package-manager-ui": "1.9.11",
"com.unity.modules.ai": "1.0.0",
"com.unity.modules.animation": "1.0.0",
Expand Down Expand Up @@ -32,6 +32,5 @@
"com.unity.modules.vr": "1.0.0",
"com.unity.modules.wind": "1.0.0",
"com.unity.modules.xr": "1.0.0"
},
"registry": "https://staging-packages.unity.com"
}
}