mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
perf(uxassist): speed up miner search and honor native clearances
Cache which seeds block each candidate for the replacement, repacking and refill passes, skip candidates that can no longer join a greedy pass, test repack option pairs only when reached, and reuse nearby nodes and obstacles across rotations at each candidate position. Recorded snapshots replay to identical layouts in sequential and parallel modes. Exclude positions the game refuses near the landing capsule and EM Rail Ejectors, and keep buried nodes near Dark Fog Planetary Bases buried, as native reform does. Remove the unused placement limit, duplicate ground checks and per-miner GPU buffer syncs; debug snapshots move to schema 3 with clearance rejections.
This commit is contained in:
1 parent
20a3a3a37e
commit
bc8a0b0189
7 files changed
+499
-397
No files matched your search
@@ -14,7 +14,7 @@ internal static class MinerPlacementDebug
|
||||
[Serializable]
|
||||
internal sealed class Snapshot
|
||||
{
|
||||
public int schema = 2;
|
||||
public int schema = 3;
|
||||
public string algorithm = "parallel-repack-v5-pose-exploration-min3-unlimited-stock";
|
||||
public int minimumCoverage = MinerPlacementSolver.MinimumCoverage;
|
||||
public string version, gameVersion, startedUtc, outcome, error;
|
||||
@@ -105,8 +105,6 @@ internal static class MinerPlacementDebug
|
||||
{
|
||||
public string name;
|
||||
public int candidateCount, passes, score;
|
||||
// Unlimited-stock snapshots may omit the legacy placement cap.
|
||||
public int limit = int.MaxValue;
|
||||
public long elapsedMilliseconds, searchMilliseconds;
|
||||
public int[] selected;
|
||||
}
|
||||
@@ -122,7 +120,7 @@ internal static class MinerPlacementDebug
|
||||
[Serializable]
|
||||
internal sealed class Rejections
|
||||
{
|
||||
public int attempted, range, mixedType, noCoverage, veinCollision, buildingCollision, ground;
|
||||
public int attempted, range, clearance, mixedType, noCoverage, veinCollision, buildingCollision, ground;
|
||||
}
|
||||
|
||||
public static float[] Vector(Vector3 value) => [value.x, value.y, value.z];
|
||||
|
||||
Reference in new issue
Block a user