Update index.html
Browse files- index.html +25 -0
index.html
CHANGED
|
@@ -212,6 +212,27 @@
|
|
| 212 |
</div>
|
| 213 |
</div>
|
| 214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
<!-- Action Bar -->
|
| 216 |
<div class="p-4 bg-gray-100 border-t-2 border-black flex gap-3 shrink-0">
|
| 217 |
<button id="btn-play"
|
|
@@ -640,6 +661,10 @@
|
|
| 640 |
currentBall: null,
|
| 641 |
progress: { unlockedIndex: 0, stars: {} },
|
| 642 |
winCondition: null,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 643 |
};
|
| 644 |
function loadProgress() {
|
| 645 |
const saved = localStorage.getItem(STORAGE_KEY);
|
|
|
|
| 212 |
</div>
|
| 213 |
</div>
|
| 214 |
|
| 215 |
+
<!-- Performance Metrics -->
|
| 216 |
+
<div class="p-3 bg-gray-50 border-2 border-black shadow-neo-sm">
|
| 217 |
+
<div class="text-xs font-bold mb-2 flex items-center gap-2">
|
| 218 |
+
<i class="fas fa-tachometer-alt"></i> PERFORMANCE
|
| 219 |
+
</div>
|
| 220 |
+
<div class="grid grid-cols-3 gap-2 text-[10px] font-mono">
|
| 221 |
+
<div class="bg-white p-1 border border-black">
|
| 222 |
+
<div class="text-gray-500 uppercase">Model Load</div>
|
| 223 |
+
<div class="font-bold" id="metric-compilation">-</div>
|
| 224 |
+
</div>
|
| 225 |
+
<div class="bg-white p-1 border border-black">
|
| 226 |
+
<div class="text-gray-500 uppercase">TTFT</div>
|
| 227 |
+
<div class="font-bold" id="metric-ttft">-</div>
|
| 228 |
+
</div>
|
| 229 |
+
<div class="bg-white p-1 border border-black">
|
| 230 |
+
<div class="text-gray-500 uppercase">TPS</div>
|
| 231 |
+
<div class="font-bold" id="metric-tps">-</div>
|
| 232 |
+
</div>
|
| 233 |
+
</div>
|
| 234 |
+
</div>
|
| 235 |
+
|
| 236 |
<!-- Action Bar -->
|
| 237 |
<div class="p-4 bg-gray-100 border-t-2 border-black flex gap-3 shrink-0">
|
| 238 |
<button id="btn-play"
|
|
|
|
| 661 |
currentBall: null,
|
| 662 |
progress: { unlockedIndex: 0, stars: {} },
|
| 663 |
winCondition: null,
|
| 664 |
+
// Performance metrics
|
| 665 |
+
modelCompilationTime: 0,
|
| 666 |
+
lastTTFT: 0,
|
| 667 |
+
lastTPS: 0,
|
| 668 |
};
|
| 669 |
function loadProgress() {
|
| 670 |
const saved = localStorage.getItem(STORAGE_KEY);
|