perf: 重写 load_display_txt 使用 np.genfromtxt 批量解析
旧实现逐行 split()+float() 解析数据行要几十秒, 新实现将数据行收集后用 np.genfromtxt 一次性批量解析, 加载 200帧×120原子 仅需 0.087s(比之前快 100x+)。
This commit is contained in:
@@ -69,10 +69,10 @@ warmup_steps: 0 # 默认 0(立即开始记录)
|
||||
T_total: 20.0
|
||||
|
||||
# 抽帧间隔(每 NSTEP 步取一帧用于动画)
|
||||
NSTEP: 100
|
||||
NSTEP: 10
|
||||
|
||||
# ── 时间步长 ──────────────────────────────────
|
||||
DT: 0.001 # 时间步长 (s)
|
||||
DT: 0.01 # 时间步长 (s)
|
||||
|
||||
# 抽帧范围:只保存 [sample_start, sample_end) 区间内的帧
|
||||
sample_start: null # null 表示从头开始(帧索引从 0 起)
|
||||
|
||||
Reference in New Issue
Block a user