Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
184 lines (171 loc) · 13 KB
/
Copy pathindex.html
File metadata and controls
184 lines (171 loc) · 13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Kitty6 Playability</title>
<meta name="description" content="How close Kitty6 is to playable: gates, run-by-run frame rate and RAM, open issues.">
<meta name="color-scheme" content="light dark">
<link rel="stylesheet" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.9.0/d3.min.js"></script>
</head>
<body>
<main class="wrap">
<header>
<div class="top">
<h1>Kitty6 Playability</h1>
<a class="repo" href="https://github.com/kitty-core/Kitty6">github.com/kitty-core/Kitty6</a>
</div>
<p class="lede" id="lede">Loading the runs…</p>
</header>
<section>
<h2>Playability gates</h2>
<p class="sub">Our own bar for "playable": the latest saved probe run, its last 45 s in the world. Picture bugs are counted by hand.</p>
<div class="gates">
<div class="card gate"><div class="lab">Frame rate (median)</div><div class="big" id="g-fps">—</div><div class="goal">Goal ≥ 20 fps, then a steady 30 · <span id="g-fps-s"></span></div></div>
<div class="card gate"><div class="lab">Slow frames (95th pct)</div><div class="big" id="g-p95">—</div><div class="goal">Goal ≤ 75 ms · <span id="g-p95-s"></span></div></div>
<div class="card gate"><div class="lab">Longest run without a crash</div><div class="big" id="g-len">—</div><div class="goal">Goal 30 min · <span id="g-len-s"></span></div></div>
<div class="card gate"><div class="lab">RAM paged in</div><div class="big" id="g-pg">—</div><div class="goal">Goal < 100 pages/s (stutter source) · <span id="g-pg-s"></span></div></div>
<div class="card gate"><div class="lab">Open picture bugs</div><div class="big">6</div><div class="goal">Goal 0 · <span class="pill bad">Not yet</span></div></div>
</div>
</section>
<section class="charts">
<div class="card">
<h2>Frame rate, run by run</h2>
<p class="sub">Median fps of each saved probe run, in the order made. Dashed line: 20 fps.</p>
<div class="chart" id="fpschart" role="img" aria-label="Median frame rate per run: about 4 fps early, 19 to 21 after the card-buffer and lock fixes"></div>
</div>
<div class="card">
<h2>Private RAM, run by run</h2>
<p class="sub">GB of RAM the game holds itself, of 32 GB. Above ~20 GB Windows starts paging it out.</p>
<div class="chart" id="ramchart" role="img" aria-label="Private RAM per run, about 19 to 26 GB"></div>
</div>
</section>
<section class="card">
<h2>Main issues</h2>
<p class="sub">Everything raised in play so far, with what we know and what's next.</p>
<div class="tw"><table>
<thead><tr><th>Status</th><th>Issue</th><th>What we know</th><th>Next</th></tr></thead>
<tbody>
<tr><td><span class="pill bad">Open</span></td><td>RAM and paging</td><td>~22 GB private, 2-3 GB free; stutters line up with page faults. Host copies of title memory ~5.3 GB, textures ~2.2 GB, our heap ~1.3 GB.</td><td>Shared command-list pools (on dev), file-backed texture cache, discardable pools.</td></tr>
<tr><td><span class="pill bad">Open</span></td><td>CPU: the submitting thread</td><td>One serial thread preps each frame (~28 ms) and waits for the card a third of the time; 8 recording threads mostly idle.</td><td>Split refresh copies over threads; port the peppa switches (BURY_ASIDE, LAND_ASIDE, MERGE_SUBMISSIONS).</td></tr>
<tr><td><span class="pill bad">Open</span></td><td>Gradient drawn over everything</td><td>New. Suspect a full-screen pass (title fill mode or an ambient pass).</td><td>In-run A/B flipping FILL_TITLE and PLACED_ORDER every 10 s.</td></tr>
<tr><td><span class="pill bad">Open</span></td><td>Sun showing through walls</td><td>Shadowing of the sky light needs ray tracing; ray tracing crashes (title null write, tracker #135).</td><td>Build only the static ray structures, or a screen-space fallback.</td></tr>
<tr><td><span class="pill bad">Open</span></td><td>Water flashes</td><td>Water programs all translate, but 5 volumetric water passes needed approximate 64-lane fallbacks.</td><td>Skip those passes by mod rule to confirm; exact form needs a large port.</td></tr>
<tr><td><span class="pill warn">Partial</span></td><td>Game speed tied to frame rate</td><td>The title clamps time per frame; below 30 fps the world runs slow.</td><td>Reach 30 fps (CPU work above).</td></tr>
<tr><td><span class="pill warn">Partial</span></td><td>Faster with the window in front</td><td>Windows gives the front window longer time slices, GPU priority and memory precedence. Working-set floor added.</td><td>Keep the "focused" column in probes; check background runs.</td></tr>
<tr><td><span class="pill warn">Unchecked</span></td><td>Mouths don't animate</td><td>16-bit fix landed, not seen in game yet.</td><td>Check in a cutscene.</td></tr>
<tr><td><span class="pill warn">Unchecked</span></td><td>Purple patches, grey-blue arms</td><td>A fix for the patches is on dev.</td><td>Check indoors.</td></tr>
<tr><td><span class="pill warn">Open</span></td><td>No 30-minute session yet</td><td>Longest probe run ~10 min in the world.</td><td>One long played session with probes on.</td></tr>
<tr><td><span class="pill ok">Fixed</span></td><td>Blocky shadows and faces</td><td>16-bit halves path; now goes by floats.</td><td>—</td></tr>
<tr><td><span class="pill ok">Fixed</span></td><td>Controls / WASD on boats</td><td>PC layout, mouse look, V for drive mode.</td><td>—</td></tr>
</tbody>
</table></div>
</section>
<section>
<h2>Tools</h2>
<div class="tools">
<div class="card"><h3>Probes (<code>-Probe</code>)</h3><p>A CSV row per second: fps, frame times, prep and card time, RAM, paging, card memory, focus. <code>victory probe-report a.csv b.csv</code> compares two.</p></div>
<div class="card"><h3><code>tools/charts/probe_table.py</code></h3><p>The run table behind this page: medians of each run's last 45 s. <code>site_csv.py</code> writes it as this page's CSV.</p></div>
<div class="card"><h3><code>tools/kitty6-prof</code></h3><p>Samples every thread's stack with PDB names: what runs, what waits (lock, fence, sleep), flame graphs, diffs.</p></div>
<div class="card"><h3>In-run A/B (<code>VICTORY_AB</code>)</h3><p>Flips named switches every n seconds in one run and logs each phase's timing.</p></div>
<div class="card"><h3>Renderer mods (<code>mods/*.k6mod</code>)</h3><p>Rules that skip a shader's draws or run them every n-th frame, by hash. No title code inside.</p></div>
<div class="card"><h3>Dev menu (F4) and overlay (F6)</h3><p>Numbers panel, frame shots, timelines, autopilot, mods on/off; live graphs beside the game.</p></div>
<div class="card"><h3>Translator scan</h3><p><code>victory translate --list</code> with <code>VICTORY_WAVE_WHY=1</code> lists which shaders needed fallbacks and why.</p></div>
<div class="card"><h3>Timelines (F8, <code>VICTORY_TIMELINE</code>)</h3><p>A Chrome trace of a few frames and the critical chain per frame.</p></div>
</div>
</section>
<details>
<summary>How the numbers are made</summary>
<p class="sub">Each run is a launch with <code>scripts\play.ps1 -Lean -Probe</code>. Figures are medians over the last 45 s of rows with at least 500 draws (in the world). Runs differ by the switch being tested, so a low run is often a test that failed, not a regression. "RAM paged in" is system-wide hard page reads per second. Runs are mostly standing or scripted, not played. Same PC every run: RTX 4070 12 GB, 32 GB RAM, Series S profile.</p>
</details>
<footer>Data updated <span id="updated">—</span> · <a href="data/probe-runs.csv">probe-runs.csv</a> · <a href="https://github.com/kitty-core/Kitty6">Kitty6 on GitHub</a></footer>
</main>
<script>
(function () {
const GOAL = { fps: 20, p95: 75, len: 1800, pages: 100 };
const fmt = d3.format(',.1f');
const $ = (id) => document.getElementById(id);
const esc = (s) => String(s).replace(/[&<>"]/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c]));
const pill = (el, pass, near) => {
el.textContent = pass ? 'Passes' : near ? 'Close' : 'Not yet';
el.className = 'pill ' + (pass ? 'ok' : near ? 'warn' : 'bad');
};
function lineChart(el, rows, toY, yLabel, ref, refLabel) {
const W = el.clientWidth || 400, H = 240, m = { t: 14, r: 12, b: 26, l: 40 };
const x = d3.scaleLinear().domain(d3.extent(rows, (d) => d.order)).range([m.l, W - m.r]);
const y = d3.scaleLinear().domain([0, Math.max(d3.max(rows, toY), ref || 0) * 1.1]).nice().range([H - m.b, m.t]);
const svg = d3.create('svg').attr('viewBox', `0 0 ${W} ${H}`).attr('aria-hidden', 'true');
svg.append('g').attr('class', 'grid').attr('transform', `translate(${m.l},0)`)
.call(d3.axisLeft(y).ticks(5).tickSize(-(W - m.l - m.r)))
.call((g) => g.select('.domain').remove());
svg.append('g').attr('class', 'xaxis').attr('transform', `translate(0,${H - m.b})`)
.call(d3.axisBottom(x).ticks(Math.max(2, Math.min(8, Math.floor(W / 70)))).tickFormat((d) => 'run ' + d));
if (ref) {
svg.append('line').attr('class', 'refline').attr('x1', m.l).attr('x2', W - m.r).attr('y1', y(ref)).attr('y2', y(ref));
svg.append('text').attr('x', m.l + 4).attr('y', y(ref) - 4).text(refLabel);
}
svg.append('path').datum(rows).attr('class', 'series').attr('d', d3.line().x((d) => x(d.order)).y((d) => y(toY(d))));
const dots = svg.append('g').selectAll('circle').data(rows).join('circle')
.attr('cx', (d) => x(d.order)).attr('cy', (d) => y(toY(d))).attr('r', 3);
const l = rows[rows.length - 1];
svg.append('text').attr('x', x(l.order) - 6).attr('y', y(toY(l)) - 8).attr('text-anchor', 'end').text(l.run + ': ' + fmt(toY(l)));
const tip = document.createElement('div');
tip.className = 'tip'; tip.hidden = true;
const show = (e) => {
const [px] = d3.pointer(e, svg.node());
const sx = px * W / (svg.node().getBoundingClientRect().width || W);
const d = rows[d3.leastIndex(rows, (a) => Math.abs(x(a.order) - sx))];
tip.hidden = false;
tip.innerHTML = `<b>${esc(d.run)}</b><br>${fmt(toY(d))} ${yLabel}<br>${esc(d.saved.replace('T', ' '))}`;
const scale = (svg.node().getBoundingClientRect().width || W) / W;
const left = x(d.order) * scale + 10;
const maxLeft = el.clientWidth - tip.offsetWidth - 4;
tip.style.left = Math.max(0, Math.min(left, maxLeft)) + 'px';
tip.style.top = Math.max(0, y(toY(d)) - 10) + 'px';
dots.attr('r', (a) => (a === d ? 5 : 3));
};
svg.on('pointermove', show).on('pointerdown', show)
.on('pointerleave', () => { tip.hidden = true; dots.attr('r', 3); });
el.replaceChildren(svg.node(), tip);
}
function render(rows) {
const l = rows[rows.length - 1];
const longest = d3.max(rows, (d) => d.world_s);
const longestMin = Math.round(longest / 6) / 10;
const passed = [l.fps >= GOAL.fps, l.ms_p95 <= GOAL.p95, longest >= GOAL.len, l.sys_pages_in_per_s < GOAL.pages].filter(Boolean).length;
$('lede').innerHTML = `Latest run <b>${esc(l.run)}</b>: <b>${l.fps}</b> fps median in the world, <b>${passed}</b> of 4 measured playability gates passed. Same PC every run: RTX 4070 12 GB, 32 GB RAM, Series S profile.`;
$('g-fps').textContent = l.fps + ' fps'; pill($('g-fps-s'), l.fps >= GOAL.fps, l.fps >= 17);
$('g-p95').textContent = l.ms_p95 + ' ms'; pill($('g-p95-s'), l.ms_p95 <= GOAL.p95, l.ms_p95 <= 100);
$('g-len').textContent = longestMin + ' min'; pill($('g-len-s'), longest >= GOAL.len, longest >= 900);
$('g-pg').textContent = l.sys_pages_in_per_s + '/s'; pill($('g-pg-s'), l.sys_pages_in_per_s < GOAL.pages, l.sys_pages_in_per_s < 1000);
const latest = d3.max(rows, (d) => d.saved);
const dt = latest ? new Date(latest) : null;
$('updated').textContent = dt && !isNaN(dt) ? dt.toLocaleDateString('en-GB', { day: 'numeric', month: 'long', year: 'numeric' }) : '—';
const draw = () => {
lineChart($('fpschart'), rows, (d) => d.fps, 'fps', GOAL.fps, '20 fps');
lineChart($('ramchart'), rows, (d) => d.private_mb / 1024, 'GB private', 32, '32 GB installed');
};
draw();
let w = window.innerWidth, t;
window.addEventListener('resize', () => {
if (window.innerWidth === w) return;
w = window.innerWidth; clearTimeout(t); t = setTimeout(draw, 150);
});
}
if (!window.d3) { $('lede').textContent = 'Couldn’t load the chart library.'; return; }
d3.csv('data/probe-runs.csv', (r) => ({
order: +r.order, run: r.run, saved: r.saved, world_s: +r.world_s, fps: +r.fps, ms_p95: +r.ms_p95,
private_mb: +r.private_mb, sys_pages_in_per_s: +r.sys_pages_in_per_s,
})).then((rows) => {
rows = rows.filter((d) => d.order && isFinite(d.fps)).sort((a, b) => a.order - b.order);
if (!rows.length) throw new Error('no rows');
render(rows);
}).catch(() => {
$('lede').textContent = 'Couldn’t load the runs.';
['fpschart', 'ramchart'].forEach((id) => { $(id).textContent = 'Couldn’t load the runs.'; });
});
})();
</script>
</body>
</html>