SphereLib: mark the verbatim sphere tree PORTED with a query test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shenlei
2026-09-30 12:24:24 +09:00
co-authored by Claude Opus 5.5
parent ed61b2d20f
commit 3c2ef81536
6 changed files with 446 additions and 0 deletions
+3
View File
@@ -573,3 +573,6 @@
{"date": "2026-09-30T03:07:37+00:00", "unit": "MilesLib/*", "action": "MilesLib platform port: 40250 SoundBase/SoundData/SoundInstance2D/3D/Stream/SoundManager*/Type copied verbatim (only includes + one unused QPC local differ) over an AIL_* software mixer (MilesAil.cpp: 2D balance pan, 3D inverse distance min 1/max 200 + listener pan, threaded stream decode, loop counts, decompress_ASI/ADPCM to float WAV); host NativeAudioEngine drains MtMilesMix; CSoundManager Create/Destroy in PythonBoot (IsNoSoundCard), listener+Update from PythonApplicationCamera, Save/RestoreVolume on window focus, CSoundData::SetPackMode in PackInitialize; old AudioCommands/SoundInstance bridge deleted; 142/142 PORTED", "evidence": "port_miles_test ok (2D/3D/stream fades/DataToInstance); ctest all pass except pre-existing flaky login_flow; desktop live client MT_AUDIO_TRACE peaks 1.17/0.70 at login and ~0.02 in game; Android device not attached, NEEDS device run"}
{"date": "2026-09-30T03:19:50+00:00", "unit": "SpeedTreeLib/SpeedTreeWrapper.cpp", "action": "CSpeedTreeRT stand-in reads the .spt collision block (12000: 12002 sphere, 12003 cylinder) and the composite texcoord block (10000: 10002 leaf maps, 10003 frond, 10004 billboard) instead of a fixed trunk cylinder and hand-picked leaf rects; GetCollisionObjectCount/GetCollisionObject DIVERGENT -> PORTED; SetupLeafBuffers note updated (earlier 'no per-leaf-map texcoords' conclusion was wrong, the rects are in section 10000)", "evidence": "port_speedtree_test ok; token layout checked over 118 .spt extracted from the 40250 packs; fake-server Yongan view (camera 4500/3/0): tree crown now drawn from its own leaf-map cells, the wrong fruit/autumn cell is gone"}
{"date": "2026-09-30T03:19:50+00:00", "unit": "SpeedTreeLib/SpeedGrassRT.cpp", "action": "SpeedGrassRT/SpeedGrassWrapper/BoundaryShapeManager N_A: compiled (USE_SPEEDGRASS) but no caller outside those files", "evidence": "LC_ALL=C grep over ClientVS22/source for CSpeedGrassRT/CSpeedGrassWrapper/CBoundaryShapeManager"}
{"date": "2026-09-30T03:23:35+00:00", "unit": "SphereLib/spherepack.cpp", "action": "all functions PORTED: src/port/SphereLib is the 40250 source verbatim", "evidence": "diff vs ClientVS22/source/SphereLib (cp949->utf8, CR stripped, #include lines dropped) = 0 lines; tests/port/port_spherelib_test.cpp range/point/ray/frustum queries"}
{"date": "2026-09-30T03:23:35+00:00", "unit": "SphereLib/sphere.cpp", "action": "all functions PORTED: src/port/SphereLib is the 40250 source verbatim", "evidence": "diff vs ClientVS22/source/SphereLib (cp949->utf8, CR stripped, #include lines dropped) = 0 lines; tests/port/port_spherelib_test.cpp range/point/ray/frustum queries"}
{"date": "2026-09-30T03:23:35+00:00", "unit": "SphereLib/frustum.cpp", "action": "all functions PORTED: src/port/SphereLib is the 40250 source verbatim", "evidence": "diff vs ClientVS22/source/SphereLib (cp949->utf8, CR stripped, #include lines dropped) = 0 lines; tests/port/port_spherelib_test.cpp range/point/ray/frustum queries"}
+32
View File
@@ -0,0 +1,32 @@
{
"reference": "SphereLib/frustum.cpp",
"reference_sha256": "933ef6a97dc79510d19d83f239f7537fafd314f84cc7cd5b3392bae998cfe32c",
"priority": "P4",
"contracts": [],
"functions": {
"Frustum::ViewVolumeTest": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/frustum.cpp:Frustum::ViewVolumeTest"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"Frustum::BuildViewFrustum": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/frustum.cpp:Frustum::BuildViewFrustum"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"Frustum::BuildViewFrustum2": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/frustum.cpp:Frustum::BuildViewFrustum2"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
}
}
}
+56
View File
@@ -0,0 +1,56 @@
{
"reference": "SphereLib/sphere.cpp",
"reference_sha256": "969dfc33be25be2568bba32a12491ac848724362bdc4a143878b2430f37121b7",
"priority": "P4",
"contracts": [],
"functions": {
"Vector3d::IsInStaticRange": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/sphere.cpp:Vector3d::IsInStaticRange"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"Sphere::Set": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/sphere.cpp:Sphere::Set"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"Sphere::RayIntersection": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/sphere.cpp:Sphere::RayIntersection"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"Sphere::RayIntersectionInFront": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/sphere.cpp:Sphere::RayIntersectionInFront"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"Sphere::Report": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/sphere.cpp:Sphere::Report"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"Sphere::Compute": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/sphere.cpp:Sphere::Compute"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
}
}
}
@@ -0,0 +1,224 @@
{
"reference": "SphereLib/spherepack.cpp",
"reference_sha256": "e9fcd5e6c27f9106a85d3948856d67845fec48efd102b3044f0d227935097122",
"priority": "P4",
"contracts": [],
"functions": {
"SpherePackFactory::SpherePackFactory": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::SpherePackFactory"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::~SpherePackFactory": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::~SpherePackFactory"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::Process": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::Process"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::AddSphere_": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::AddSphere_"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::AddIntegrate": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::AddIntegrate"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::AddRecompute": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::AddRecompute"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::Render": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::Render"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePack::Render": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePack::Render"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePack::Recompute": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePack::Recompute"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePack::LostChild": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePack::LostChild"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::Remove": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::Remove"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::GetColor": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::GetColor"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::Integrate": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::Integrate"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::FrustumTest": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::FrustumTest"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePack::VisibilityTest": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePack::VisibilityTest"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::RayTrace": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::RayTrace"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::RangeTest": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::RangeTest"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::PointTest2d": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::PointTest2d"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePack::RangeTest": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePack::RangeTest"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePack::PointTest2d": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePack::PointTest2d"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::RangeTestCallback": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::RangeTestCallback"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::PointTest2dCallback": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::PointTest2dCallback"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePack::RayTrace": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePack::RayTrace"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::RayTraceCallback": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::RayTraceCallback"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::Reset": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::Reset"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePack::Reset": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePack::Reset"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
},
"SpherePackFactory::VisibilityCallback": {
"status": "PORTED",
"impl": [
"src/port/SphereLib/spherepack.cpp:SpherePackFactory::VisibilityCallback"
],
"test": "tests/port/port_spherelib_test.cpp",
"note": "verbatim 40250 source (0 diff lines outside #include); used by CCullingManager and CScreen frustum"
}
}
}