Skip to content

Commit 5f6e381

Browse files
author
Sunrisepeak
committed
mcpplibs.mwrap.recastnavigation 1.6.0.2: the same mesh bytes on every platform (stable sorts)
recastnavigation-m mwrap-1.6.0.2 (mcpplibs/recastnavigation-m#1): patches/0004 makes the BV tree and the contours' hole merging sort with std::stable_sort instead of qsort, which orders equal keys differently by C library; a new test pins a tiled grid hall's bytes and a crowd on it, the same on every CI row. GLOBAL and CN archives are byte-identical (sha256 7e08fd3902ca9e5e57d46151a8909b401bda5fd3bac1e106397b98391dd7f822). The consumer test recastnavigation-path moves to 1.6.0.2 (its pinned hashes are unchanged).
1 parent b4bc590 commit 5f6e381

3 files changed

Lines changed: 28 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020

2121
### Fixed
2222

23+
- **mcpplibs.mwrap.recastnavigation 1.6.0.2(包装修订 2)。** 网格在每个平台上逐字节相同。1.6.0.1 的 Detour BV 树与 Recast 轮廓孔洞合并
24+
用 C 库的 `qsort` 排序,`qsort` 不稳定,glibc、macOS、Windows UCRT 与 emscripten 对相等键的排列不同,带并列键的网格(网格状布局
25+
很常见)因而得到不同的字节,其上的群体走到不同位置。补丁 0004 让这五处改用 `std::stable_sort`(同一比较函数,值得回馈上游);新测试
26+
钉住分成四块的柱网大厅的字节与群体状态,各平台一致。消费者测试 `tests/mwrap/recastnavigation-path` 改用 1.6.0.2。
2327
- **openkal-emscripten 0.14.3。** 描述符权限表(4096 个条目与 64 个根)的成员默认值为 -1,两张表因此是已初始化数据:每个 Web
2428
构建的程序带着约 80 KiB 不会用到的字节(一个交付预算 4,000,000 B 的站点因此超出 9,332 B)。默认值全部改为零,取用的槽位再设哨兵;
2529
emsdk 6.0.9、-O2 下 `g_entries` 与 `g_roots` 从 `.data` 移到 `.bss`,行为不变(mcpplibs/openkal-emscripten#22)。

‎pkgs/mwrap/recastnavigation.lua‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-- Immutable upstream-aligned mwrap source releases (recastnavigation-m mwrap-1.6.0, the first release of upstream
2-
-- 1.6.0; mwrap-1.6.0.1, its first revision); GLOBAL and CN bytes are identical.
2+
-- 1.6.0; mwrap-1.6.0.1, its first revision; mwrap-1.6.0.2, its second); GLOBAL and CN bytes are identical.
33
--
44
-- The wrapper is Apache-2.0; the libraries it vendors and links statically,
55
-- Recast & Detour 1.6.0, are zlib: the package deploys their README and
@@ -34,6 +34,13 @@ package = {
3434
},
3535
sha256 = "5dd92b25792ea35b10b4a40ddfd772915b67ec648ce5296abe21c30d4da8fbc9",
3636
},
37+
["1.6.0.2"] = {
38+
url = {
39+
GLOBAL = "https://github.com/mcpplibs/recastnavigation-m/releases/download/mwrap-1.6.0.2/recastnavigation-m-1.6.0.2.tar.gz",
40+
CN = "https://gitcode.com/mcpp-res/mwrap-recastnavigation/releases/download/1.6.0.2/recastnavigation-m-1.6.0.2.tar.gz",
41+
},
42+
sha256 = "7e08fd3902ca9e5e57d46151a8909b401bda5fd3bac1e106397b98391dd7f822",
43+
},
3744
},
3845
macosx = {
3946
["1.6.0"] = {
@@ -50,6 +57,13 @@ package = {
5057
},
5158
sha256 = "5dd92b25792ea35b10b4a40ddfd772915b67ec648ce5296abe21c30d4da8fbc9",
5259
},
60+
["1.6.0.2"] = {
61+
url = {
62+
GLOBAL = "https://github.com/mcpplibs/recastnavigation-m/releases/download/mwrap-1.6.0.2/recastnavigation-m-1.6.0.2.tar.gz",
63+
CN = "https://gitcode.com/mcpp-res/mwrap-recastnavigation/releases/download/1.6.0.2/recastnavigation-m-1.6.0.2.tar.gz",
64+
},
65+
sha256 = "7e08fd3902ca9e5e57d46151a8909b401bda5fd3bac1e106397b98391dd7f822",
66+
},
5367
},
5468
windows = {
5569
["1.6.0"] = {
@@ -66,6 +80,13 @@ package = {
6680
},
6781
sha256 = "5dd92b25792ea35b10b4a40ddfd772915b67ec648ce5296abe21c30d4da8fbc9",
6882
},
83+
["1.6.0.2"] = {
84+
url = {
85+
GLOBAL = "https://github.com/mcpplibs/recastnavigation-m/releases/download/mwrap-1.6.0.2/recastnavigation-m-1.6.0.2.tar.gz",
86+
CN = "https://gitcode.com/mcpp-res/mwrap-recastnavigation/releases/download/1.6.0.2/recastnavigation-m-1.6.0.2.tar.gz",
87+
},
88+
sha256 = "7e08fd3902ca9e5e57d46151a8909b401bda5fd3bac1e106397b98391dd7f822",
89+
},
6990
},
7091
},
7192
}

‎tests/mwrap/recastnavigation-path/mcpp.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "recastnavigation-path"
3-
version = "1.6.0.1"
3+
version = "1.6.0.2"
44
description = "Consume the immutable Recast & Detour wrapper: a navigation mesh built from triangles, a path around a wall, a crowd walked through a doorway; the mesh's bytes and the crowd's places pinned"
55

66
[indices]
77
# Use the complete candidate built-in index prepared by tests/run_members.sh.
88
# An explicit empty table overrides the legacy workspace redirect.
99

1010
[dependencies]
11-
mcpplibs.mwrap.recastnavigation = "1.6.0.1"
11+
mcpplibs.mwrap.recastnavigation = "1.6.0.2"
1212

1313
# Detour's inline math compiled here too, as the library is built.
1414
[build]

0 commit comments

Comments
 (0)