Commit Graph

820 Commits

Author SHA1 Message Date
ikpil a282a80356 Changed vertCount and triCount to byte in DtPolyDetail 2024-07-02 13:47:31 +09:00
ikpil ba6815769a Changed to use Span<byte> and stackalloc for improved performance and memory management in `RcLayers.BuildHeightfieldLayers()` 2024-06-27 14:04:30 +09:00
ikpil ee48892223 Optimize stack handling by replacing List with a fixed-size array and manual index management in RcLayers 2024-06-26 23:46:40 +09:00
ikpil d472d71795 Added RcSpans.Fill<T>() 2024-06-25 00:45:08 +09:00
ikpil bdb9463d88 Changed RcLayerRegion.layerId to byte 2024-06-25 00:30:51 +09:00
ikpil 35f5c63d77 DtStraightPathFlags int to byte 2024-06-25 00:17:07 +09:00
ikpil e5d5867c56 rename RcVecUtils to RcVec 2024-06-25 00:02:59 +09:00
ikpil 72b7cfd6db update Serilog.Sinks.File 6.0.0 2024-06-24 22:36:05 +09:00
ikpil 267e15fd4c refactor DtTileCacheObstacle class 2024-06-21 00:07:58 +09:00
ikpil 35ef64d9b4 reorder the member variables of DtTileCacheObstacle 2024-06-20 23:52:37 +09:00
ikpil 0092761742 Changed to consolidate vector-related functions into one place. 2024-06-19 13:46:04 +09:00
ikpil 5911510544 fix compile error 2024-06-17 23:15:43 +09:00
ikpil f54b586d75 Serilog.Enrichers.Thread 4.0.0 2024-06-17 14:09:46 +09:00
ikpil 5827a43dd8 Changed `RcChunkyTriMesh` to separate the function and variable. 2024-06-12 00:41:39 +09:00
ikpil 650849b11b Changed 'reg', 'area' arrays to byte arrays for uniformity and efficiency in DtTileCacheContour 2024-06-12 00:03:59 +09:00
ikpil b88b6096f6 Fixed where the dynamic voxel save file browser doesn't appear In Demo 2024-06-11 22:23:22 +09:00
ikpil 65c572a4c2 Changed 'heights', 'areas', 'cons', and 'regs' arrays to byte arrays for uniformity and efficiency in DtTileCacheLayer 2024-06-11 00:44:20 +09:00
ikpil 3417ecae36 Serilog.Sinks.Console 6.0.0 2024-06-10 14:09:06 +09:00
ikpil 320c7b4c65 Removed RcVecUtils.Dot2D(this RcVec3f @this, Span<float> v, int vi) 2024-06-08 20:56:55 +09:00
ikpil fd03f0f12f Removed RcVecUtils.Create(float[] values) 2024-06-08 14:24:47 +09:00
ikpil ed7173dd51 Removed RcVecUtils.Min(), RcVecUtils.Max() 2024-06-08 14:21:38 +09:00
ikpil face8eb48e Changed to reuse samples and edges list in BuildPolyDetail() 2024-06-08 12:08:31 +09:00
ikpil 759e335961 Removed RcVecUtils.Subtract(float[] verts, int i, int j) 2024-06-07 22:46:08 +09:00
ikpil 8ad34dc0d8 Removed RcMeshDetails.VdistSq2(float[], float[]) 2024-06-07 22:36:46 +09:00
ikpil ebab0a11f3 Removed RcVecUtils.Subtract(RcVec3f i, float[] verts, int j) 2024-06-07 21:44:59 +09:00
ikpil b18845a749 Removed RcVecUtils.Scale() 2024-06-07 21:31:11 +09:00
ikpil 0f20db44bb Serilog.Sinks.Async 1.5.0 -> 2.0.0 2024-06-07 21:24:11 +09:00
ikpil 099636cd7c Removed RcVecUtils.Dot() 2024-06-04 00:34:07 +09:00
ikpil 01b7b4add9 pgrade Serilog 4.0.0 for DotRecast.Recast.Demo 2024-06-01 23:27:22 +09:00
ikpil 2a45ec021c added DT_NODE_PARENT_BITS 2024-05-31 23:25:35 +09:00
ikpil d94408f7a1 Changed class `Trajectory` to interface `ITrajectory` 2024-05-31 22:36:57 +09:00
ikpil e9a5512bb2 public class EdgeSamplerFactory 2024-05-30 22:55:47 +09:00
ikpil 17ecdb1cc7 added RcMath.Lerp() 2024-05-30 22:53:01 +09:00
ikpil 34d2ef639a update `DotRecast Copyright (c) 2023-2024 Choi Ikpil ikpil@naver.com` 2024-05-25 22:42:57 +09:00
ikpil e6f515f08a update comment 2024-05-25 21:37:04 +09:00
ikpil 7664ae9f3d code cleanup in RcResources 2024-05-25 09:36:00 +09:00
ikpil aeefed7fbb add DT_VERTS_PER_POLYGON 2024-05-25 00:34:24 +09:00
ikpil 1b4f5af155 update comment 2024-05-24 22:14:57 +09:00
ikpil 886be3712f Changed `DtWriter` to a static class and renamed it to `RcIO` 2024-05-23 22:39:03 +09:00
ikpil 99224251dc Changed `List<DtStraightPath>` to `Span<DtStraightPath>` for enhanced memory efficiency 2024-05-23 21:19:16 +09:00
ikpil 5b6905bd8f Changed `MAX_STEER_POINTS` from class constant to local. 2024-05-22 23:49:15 +09:00
ikpil c7f03d00ff Changed `Dictionary<int, List<DtMeshTile>>` to `DtMeshTile[]` to optimize memory usage 2024-05-22 01:34:11 +09:00
ikpil 9a03ade6c9 Changed `DtTileCacheBuilder` to a static class 2024-05-21 00:12:40 +09:00
ikpil 8f8db51542 Changed `DtTileCacheBuilder` to a static class 2024-05-21 00:10:24 +09:00
ikpil ec9ebe28b9 long[] -> Span<long> 2024-05-20 00:16:36 +09:00
ikpil c9a54d4b4e Added `DtCollectPolysQuery` and `FindCollectPolyTest` 2024-05-19 09:16:25 +09:00
ikpil 3808c13876 Changed `IDtPolyQuery` interface to make `Process()` more versatile 2024-05-18 14:50:22 +09:00
ikpil 3b5e85eeb6 added Tile hash lookup size in DtNavMesh 2024-05-18 00:10:58 +09:00
ikpil 7212afaac6 needed by Dotrecast 2024-05-17 23:46:48 +09:00
ikpil 886afd20cd reduced memory usage of DtLink. 2024-05-17 23:46:48 +09:00
ikpil c3208f7968 changed polyLinks to firstLinks 2024-05-17 23:46:48 +09:00
ikpil 4543df0b90 update comment 2024-05-15 23:06:52 +09:00
ikpil a649081a5b update comment DtMeshTile class 2024-05-14 23:46:54 +09:00
ikpil 4e7afa64c6 update comment in DtNavMeshParams 2024-05-14 23:17:39 +09:00
ikpil 47be4eca70 added DtNavMesh.Init() 2024-05-12 22:05:19 +09:00
ikpil 40306a5302 rename RcRecast, DtDetour 2024-05-12 01:11:03 +09:00
ikpil 3f750ba499 update comment, class member name 2024-05-12 00:36:18 +09:00
ikpil 61e7b7a443 update RandomPointInConvexPoly() 2024-05-12 00:25:53 +09:00
ikpil dfbd1b2cae update comment 2024-05-12 00:08:18 +09:00
ikpil 1bf0a88492 update comment in DtPoly class 2024-05-11 23:58:01 +09:00
ikpil e926c23195 SOH #41 2024-05-09 00:34:22 +09:00
ikpil 59849e1dac add `int nvisited` in DtPathUtils.functions 2024-05-09 00:00:53 +09:00
ikpil cfdcc1336c preparatory work to resolve the SOH issue during path merging. 2024-05-08 00:25:32 +09:00
ikpil 19e358bdfc m_npath instead of m_path.Count 2024-05-07 23:56:15 +09:00
ikpil fc673b2c25 test2 2024-05-06 15:45:24 +09:00
ikpil 741200b559 added int npath param in FixupShortcuts() 2024-05-06 14:37:43 +09:00
ikpil b165a3afed SOH issue #41
- https://github.com/ikpil/DotRecast/issues/41
2024-05-06 14:34:46 +09:00
ikpil 884789a934 added RcSpan unit test 2024-05-05 13:11:12 +09:00
ikpil 3c43623769 SOH in DrawPolyBoundaries 2024-05-04 09:34:22 +09:00
ikpil 08c8db2d19 SOH 2024-05-03 22:44:04 +09:00
ikpil 4acb0a163a SOH for Gizmo 2024-05-03 22:09:37 +09:00
ikpil a5a101c0c2 SOH allocation issues
https://github.com/ikpil/DotRecast/issues/41
2024-05-03 22:00:51 +09:00
ikpil bef346a8cb SOH
https://github.com/ikpil/DotRecast/issues/41
2024-05-03 00:31:10 +09:00
ikpil 9e9a3f0dc2 SOH
https://github.com/ikpil/DotRecast/issues/41
2024-05-03 00:19:12 +09:00
ikpil daf552b4b7 SOH - Span<float> verts = stackalloc float[m_maxVertPerPoly * 3];
https://github.com/ikpil/DotRecast/issues/41
2024-05-02 23:12:33 +09:00
ikpil 1e0ef4f5cc SOH-2 - Span<float> pat = stackalloc float[(DT_MAX_PATTERN_DIVS * DT_MAX_PATTERN_RINGS + 1) * 2];
- https://github.com/ikpil/DotRecast/issues/41
2024-05-01 13:03:34 +09:00
ikpil 29fab9f5b2 soh-1 2024-04-30 00:13:52 +09:00
wrenge b09eada4cf Merge remote-tracking branch 'refs/remotes/origin/main' 2024-04-27 09:04:19 +03:00
ikpil 3ae7582043 added RcSpans util 2024-04-27 11:08:55 +09:00
ikpil adbb265ca2 added T[] vs Span<T> benchmark 2024-04-27 11:00:32 +09:00
ikpil fb49a5bca6 checking ... 2024-04-27 10:58:47 +09:00
ikpil 97777511a7 Added the keepInterResults option to RcBuilder.Build()
- https://github.com/ikpil/DotRecast/issues/66
2024-04-25 01:18:04 +09:00
ikpil f22ec94038 support C# 10, 11 in DotRecast.Recast.Demo 2024-04-25 00:59:02 +09:00
ikpil bf6ee495d2 upgrade Silk.NET 2.20.0 -> 2.21.0 2024-04-24 23:40:11 +09:00
wrenge 0ed414f08c update package json 2024-04-23 11:23:21 +03:00
wrenge 897748285f Merge branch 'refs/heads/pr/fix-small-object-heap-issue'
# Conflicts:
#	src/DotRecast.Detour/DtNavMeshQuery.cs
2024-04-23 11:16:42 +03:00
wrenge 331e35ecbb Merge branch 'refs/heads/main' 2024-04-23 11:15:18 +03:00
ikpil f49f9eb558 addedd AllocSpan/FreeSpan API 2024-04-22 23:57:13 +09:00
ikpil 6b2bd27b71 added RcSpanPool class 2024-04-22 23:52:01 +09:00
wrenge 3157c1e764 Avoidance patches 2024-04-22 15:31:23 +03:00
ikpil 50ea674cce used option `keepInterResults` to save memory
- https://github.com/ikpil/DotRecast/issues/66
- https://github.com/ikpil/DotRecast/issues/61
2024-04-20 12:59:34 +09:00
ikpil 8fe46a6450 Keep Itermediate Results in JumpLinkBuilderSampleTools 2024-04-18 00:10:06 +09:00
ikpil 80e07ebb3c Tick 'Keep Intermediate Results' option. 2024-04-17 23:50:48 +09:00
ikpil 97ffaf8700 add comment "Tick 'Keep Itermediate Results'" 2024-04-16 23:24:48 +09:00
ikpil 17c1c18372 added "Keep Itermediate Results" flag 2024-04-15 23:42:55 +09:00
ikpil 9210eb58fe changed to use `CompactHeightfield` instead of `Heightfield` when finding bmin/bmax 2024-04-14 00:43:03 +09:00
ikpil da82d6ba4d reduced usability of SolidHeightfield in recast build results 2024-04-13 12:53:58 +09:00
ikpil 26a1dfddeb fix bug where return value of dynamic update result is reversed 2024-04-13 12:43:54 +09:00
ikpil 668ebd0128 update comment 2024-04-12 02:27:07 +09:00
ikpil 402b25a436 fixed an issue where await deadlock could occur in various platform environments. 2024-04-12 00:08:06 +09:00