Commit Graph

820 Commits

Author SHA1 Message Date
wrenge ff930712ee Use rented array instead of allocating 2024-11-12 11:18:14 +03:00
wrenge 6fe6844efd Span access 2024-11-11 14:26:35 +03:00
wrenge c8104cec4d Replaced arrays with spans in query. Replaced array allocation with buffer rent in query. 2024-11-11 14:19:43 +03:00
wrenge db0717a77e package version bump 2024-11-11 11:37:12 +03:00
wrenge 724be6f3b2 Backport 20a86b5bae 2024-11-11 11:34:47 +03:00
wrenge 0f28fa26ec Merge branch 'main'
# Conflicts:
#	src/DotRecast.Detour.Crowd/DtObstacleAvoidanceQuery.cs
#	src/DotRecast.Detour/DtBVNode.cs
#	src/DotRecast.Detour/DtNavMesh.cs
#	src/DotRecast.Detour/DtNavMeshQuery.cs
#	src/DotRecast.Detour/DtPoly.cs
#	src/DotRecast.Detour/DtPolyDetail.cs
#	src/DotRecast.Recast.Toolset/RcNavMeshBuildSettings.cs
#	test/DotRecast.Core.Test/RcRentedArrayTest.cs
2024-11-11 11:09:29 +03:00
ikpil fba594724c Silk.NET" 2.22.0 2024-11-07 00:50:47 +09:00
Georgiy Sadovnikov 20a86b5bae fix getting normal vector from raycast 2024-11-05 16:22:24 +03:00
Семенов Иван c84fb0b11e Fixed: decrease offmesh connection trigger radius for crowd 2024-10-28 17:08:29 +03:00
Семенов Иван 4a1b430ee6 Added: allow set userId for offmesh connections 2024-10-25 14:51:32 +03:00
Семенов Иван 53aac60713 Fixed: tiles cache mesh process with off mesh links 2024-10-25 10:21:22 +03:00
ikpil 4ec36fb8b4 Serilog.Sinks.Async 2.1.0 2024-10-25 14:03:51 +09:00
ikpil 5de6e06a94 Serilog 4.1.0 2024-10-23 08:54:31 +09:00
ikpil 1bf2ff48f2 Changed bmin/bmax from float[] to RcVec2f for improved memory efficiency and readability 2024-10-13 16:41:25 +09:00
ikpil ea437ef020 Changed bmin/bmax from int[] to RcVec3i for improved memory efficiency 2024-10-13 16:30:52 +09:00
ikpil a225e32a5a Serilog.Settings.Configuration 8.0.4 2024-10-10 13:39:58 +09:00
ikpil e9ca704ab7 update Serilog.Settings.Configuration 8.0.3 2024-10-08 13:44:36 +09:00
ikpil 62f9cfe034 Support for saving and loading dynamic nav meshes @ppiastucki
[Upstream] from recast4j
506b503 - chore: Support for saving and loading dynamic nav meshes (fixes #200) (#209)
2024-10-01 23:28:50 +09:00
ikpil 36795dc909 Serilog 4.0.2 2024-09-29 22:53:10 +09:00
ikpil 85e2484505 fix: Support non-tiled dynamic nav meshes (@ppiastucki)
[Upstream] from recast4j
- fe071aa - fix: Support non-tiled dynamic nav meshes (#205)
2024-09-21 03:13:51 +09:00
ikpil 2d0e2f8525 Fix dynamic mesh bounds calculation #77
recast4j
- https://github.com/recast4j/recast4j/issues/203
- https://github.com/recast4j/recast4j/pull/204
2024-09-21 02:54:01 +09:00
ikpil e9a05843da bugfix - checkbox flags 2024-09-12 01:35:21 +09:00
ikpil f18bedb02d force utf-8 2024-09-05 22:57:28 +09:00
ikpil e73ec9acda runtime comment 2024-08-24 22:25:13 +09:00
Sarofc 997d3f1a9b draw agent option 2024-08-08 22:53:27 +09:00
ikpil 153b523ea7 changelog 2024-08-04 18:15:16 +09:00
ikpil 89214accfb added RcBinaryMinHeapTest 2024-08-04 18:03:31 +09:00
Sarofc c036501879 opt UpdateMoveRequest UpdateTopologyOptimization
# Conflicts:
#	src/DotRecast.Detour.Crowd/DtCrowd.cs

Benchmark

b3

b4
2024-08-03 13:24:42 +09:00
Sarofc ab04256cdf Update ModernOpenGLDraw.cs
(cherry picked from commit 6fb44cc3ce47be2c724d6093ef4b3168aacf9480)
2024-07-26 22:27:24 +09:00
ikpil 8ba8c04895 update serilog 4.0.1 2024-07-25 23:16:19 +09:00
ikpil bc7818a1c5 [Upstream] fix: Fix raycast shortcuts (@Sarofc)
Raycast is performed in 2d and it might report reaching the given position even if the Y coordinate is different than the target. Therefore, it is necessary to check what poly is actually hit by raycast before taking a shortcut.

- https://github.com/recast4j/recast4j/issues/196
- https://github.com/recast4j/recast4j/pull/197
- https://github.com/ikpil/DotRecast/issues/72
2024-07-18 20:06:36 +09:00
ikpil a87f34e738 update comment 2024-07-17 23:48:11 +09:00
ikpil cf7aec90ee Changed DtNavMeshQuery.GetPolyWallSegments() to use Span<T> for enhanced performance, memory efficiency. 2024-07-16 22:19:41 +09:00
ikpil 84419b1d52 Changed memory handling to use stackalloc in DtNavMeshQuery.GetPolyWallSegments for reducing SOH
Refactored to use stack-allocated Span<DtSegInterval> instead of dynamically allocating List<DtSegInterval>. This reduces potential heap allocations and improves performance by efficiently managing memory within a fixed size context.
2024-07-14 23:51:04 +09:00
ikpil c562f8f6a1 Changed new RcVec3f[3] to stackalloc RcVec3f[3] in DtNavMesh.GetPolyHeight() to reduce heap allocation. 2024-07-14 00:09:08 +09:00
ikpil eccce01cff reorder variable declarations 2024-07-13 23:21:56 +09:00
ikpil 990dbcf97f Changed data structure of 'neis' from List<byte> to byte[] for optimized memory usage and improved access speed in `DtLayerMonotoneRegion` 2024-07-12 23:55:35 +09:00
ikpil 00950b1210 update Serilog.Settings.Configuration 8.0.2 2024-07-12 23:18:19 +09:00
ikpil c5820af20b update comment 2024-07-12 01:54:38 +09:00
ikpil afe93d084e update comment 2024-07-12 01:46:53 +09:00
ikpil b34b17e89c update comment in DtCrowdAgentParams 2024-07-08 14:01:28 +09:00
ikpil 31b7eaf9a3 update comment 2024-07-08 13:55:56 +09:00
ikpil 9ebaa3fc65 Changed to limit neighbor search to a maximum count and use array for memory efficiency in `DtCrowd.AddNeighbour()` 2024-07-07 14:58:38 +09:00
ikpil 76e5ade4d1 update comment in DtCrowdNeighbour 2024-07-07 14:04:37 +09:00
ikpil 1894a56889 Changed to efficiently stack nearby DtCrowdAgents in `DtCrowd.GetNeighbours()` 2024-07-07 12:55:51 +09:00
ikpil 828b9644cc Changed agents management from list to dictionary in `Crowd` 2024-07-07 12:38:09 +09:00
ikpil ab2c520076 Changed `new float[]` to `stackalloc float[]` in `DtConvexConvexIntersections.Intersect()` 2024-07-05 00:15:03 +09:00
ikpil 4743ba68f9 Changed static readonly to const 2024-07-04 23:34:25 +09:00
ikpil fa2ff6f133 comment 2024-07-04 01:14:31 +09:00
ikpil 355a08e7ef int to byte 2024-07-03 23:08:31 +09:00