Repository navigation
Logic Sugar v5.8.0[v160.1]
Pre-release
Pre-release
·
24 commits
to main
since this release
Note
需要 Mindustry v160.1+(桌面 / Android)
Requires Mindustry v160.1+ (Desktop / Android)
中文
本次新增
- 性能分析器:统计每条指令的执行次数或消耗的指令预算,以及分支比例与代码覆盖率;在变量界面点 📊 打开,也可在调试构建的程序里用
profile指令启停、清空,数据可复制成表格 - 「录制」快照:记录目标处理器接下来 N 条指令的逐指令状态(变量默认只显示该指令用到的那些),用
snapshot recording创建 - 连通快照现在会包含处理器正在控制的单位,快照也可以创建在任何单位或方块上
restart调试指令:重启目标处理器并清空它的变量,用于从另一台处理器录制它的启动代码(调试构建下可用)- 变量表新增「指令预算」行:直接看到处理器本帧还剩多少预算
本次改动
- 变量 / 内存 / 属性界面:含
[的字符串按原文显示,超长字符串不再卡住界面;时间列改用与游戏时钟一致的刻度;内存值可以导出成文件、也可以从文件导入;恢复 / 删除快照固定在「编辑」菜单里,窄屏下也能找到 - 与上游 MlogAssertions v0.11.3 对齐:旧版保存的快照行仍然无损读取,新保存的统一写成当前格式
已知问题
- 用 5.7.2 及更早版本打开含「录制」快照行的调试程序时,那一行会显示成快照名(只是显示差别,程序在原版与新版上都照常运行)
English
Added
- Profiler: counts how many times each instruction runs or how much instruction quota it spends, plus branch ratios and code coverage; open it with the 📊 button on the Vars screen, or start/stop/clear it from a debug-build program with the
profileinstruction, and copy the data as a table - Recording snapshots: capture the per-instruction state for the next N instructions of a target processor (variables are filtered to the ones that instruction used), created with
snapshot recording - Connected snapshots now include the units a processor is controlling, and snapshots can be created for any unit or block
restartdebug instruction: restarts a target processor and resets its variables, so another processor can record its startup code (available in debug builds)- Instruction budget row in the variable table, showing what the processor has left for the frame
Changed
- Vars / Memory / Properties screens: strings containing
[are shown literally and very long strings no longer stall the screen; the time column follows the game clock; memory values can be exported to and imported from a file; restore/delete snapshot are always in the Edit menu, so they are reachable on narrow screens too - Aligned with upstream MlogAssertions v0.11.3: older saved snapshot lines are still read losslessly, and newly saved ones use the current format
Known issues
- Opening a debug program that contains a recording snapshot line in 5.7.2 or older shows the step count as the snapshot name (display only; the program runs the same on vanilla and on the newer version)