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
@@ -449,7 +449,7 @@ You can set 2 shortcut keys in Settings panel:
|
||||
I18N.Add(DismantleAllBuildingsConfirm, "This operation will dismantle all buildings on this planet, are you sure?", "此操作将会拆除本行星上的所有建筑,确定吗?");
|
||||
I18N.Add(QuickBuildOrbitalCollectors, "Quick build Orbital Collectors", "快速建造轨道采集器");
|
||||
I18N.Add(QuickBuildMiningMachines, "Quick build Mining Machines", "快速铺设采矿机");
|
||||
I18N.Add(QuickBuildMiningMachinesTips, "Places ordinary Mining Machine prebuilds at the nearest solid vein group. Restores buried nodes when buildings do not obstruct them. Searches native collision shapes and maximizes the sum of each miner's vein count, counting shared nodes repeatedly. Every placed miner must retain at least 3 covered nodes after all planned burials. May bury unused nodes to improve the total. Places the full layout regardless of carried stock; missing miners remain as ghosts awaiting materials. Respects ground and construction range; does not lay belts or power poles. Click again to cancel the search.", "在最近的固体矿脉生成普通采矿机待建造对象。先还原未被建筑阻挡的掩埋矿点,按游戏实际碰撞体搜索布局,以各台矿机覆盖矿点数之和为目标,同一矿点被多台矿机覆盖时重复计数。所有计划掩埋完成后,每台矿机仍须覆盖至少 3 个矿点。允许掩埋未被现有矿机使用的矿点,以提高总覆盖数。布局数量不受库存限制,采矿机不足的位置保留待建造虚影,等待补充材料。遵守地面和建造范围要求,不铺设传送带和电力设施。计算期间再次点击可取消。");
|
||||
I18N.Add(QuickBuildMiningMachinesTips, "Places ordinary Mining Machine prebuilds at the nearest solid vein group. Restores buried nodes when no building obstructs them and no Dark Fog Planetary Base is nearby. Searches native collision shapes and maximizes the sum of each miner's vein count, counting shared nodes repeatedly. Every placed miner must retain at least 3 covered nodes after all planned burials. May bury unused nodes to improve the total. Places the full layout regardless of carried stock; missing miners remain as ghosts awaiting materials. Respects ground and construction range; does not lay belts or power poles. Click again to cancel the search.", "在最近的固体矿脉生成普通采矿机待建造对象。先还原未被建筑阻挡且不在黑雾行星基地附近的掩埋矿点,按游戏实际碰撞体搜索布局,以各台矿机覆盖矿点数之和为目标,同一矿点被多台矿机覆盖时重复计数。所有计划掩埋完成后,每台矿机仍须覆盖至少 3 个矿点。允许掩埋未被现有矿机使用的矿点,以提高总覆盖数。布局数量不受库存限制,采矿机不足的位置保留待建造虚影,等待补充材料。遵守地面和建造范围要求,不铺设传送带和电力设施。计算期间再次点击可取消。");
|
||||
I18N.Add(QuickMinerCancelSearch, "Cancel miner layout search", "取消采矿机布局计算");
|
||||
I18N.Add(QuickMinerSearching, "Searching for a dense miner layout... Click the button again to cancel.", "正在计算密集采矿机布局,再次点击按钮可取消。");
|
||||
I18N.Add(QuickMinerCancelled, "Miner layout search cancelled", "已取消采矿机布局计算");
|
||||
|
||||
Reference in new issue
Block a user