dsv41: the layer-major run's RAM is given back before the cache catch-up and the store fill

This commit is contained in:
Niko1221 committed 2026-10-23 19:24:01 +02:00
1 parent 96a47b79d5
commit dbf3bb2e64
1 file changed
+4
+4
View File
@@ -7340,6 +7340,10 @@ struct Model::Impl {
pos += n;
st.tokens += n;
cache_tick(n);
if (lm_end_.on) { // (the layer cache's RAM back before the store and the swaps want it)
lm_end();
lm_end_.on = false;
}
cache_settle();
const int nr = std::min(T_last, tap_cap);
if (!seed_drafter(pos - nr, nr, 0, err)) return false;