removed unused processesseessess
This commit is contained in:
parent
348f355eb2
commit
4fdc567e08
158 changed files with 1317 additions and 3351 deletions
|
|
@ -82,8 +82,8 @@
|
|||
|
||||
let lastEvents = [];
|
||||
let lastAudio = [];
|
||||
window.TarinaiEvents?.on("*", ev => { lastEvents.unshift(ev.type); if (lastEvents.length > 10) lastEvents.length = 10; });
|
||||
window.TarinaiEvents?.on("audio:play", ev => { lastAudio.unshift(`${ev.detail?.id || "?"}:${ev.detail?.category || "?"}`); if (lastAudio.length > 8) lastAudio.length = 8; });
|
||||
window.TarinaiEvents.on("*", ev => { lastEvents.unshift(ev.type); if (lastEvents.length > 10) lastEvents.length = 10; });
|
||||
window.TarinaiEvents.on("audio:play", ev => { lastAudio.unshift(`${ev.detail?.id || "?"}:${ev.detail?.category || "?"}`); if (lastAudio.length > 8) lastAudio.length = 8; });
|
||||
|
||||
function fmtMs(v) {
|
||||
const n = Number(v || 0);
|
||||
|
|
@ -134,11 +134,11 @@
|
|||
const DEBUG_REFRESH_MS = 750;
|
||||
window.setInterval(() => {
|
||||
const w = window.world;
|
||||
const input = window.TarinaiInputMode?.snapshot?.() || {};
|
||||
const input = window.TarinaiInputMode.snapshot() || {};
|
||||
const diag = w?.lastRuntimeDiagnostics || w?.runtimeDiagnostics?.() || {};
|
||||
const behaviorCounts = diag.behavior?.counts || {};
|
||||
const topBehaviors = topMap(behaviorCounts, 5);
|
||||
const perf = diag.perf || window.TarinaiPerf?.snapshot?.() || {};
|
||||
const perf = diag.perf || window.TarinaiPerf.snapshot() || {};
|
||||
const metrics = perf.metrics || {};
|
||||
const currentDpr = (typeof uiCache !== "undefined" && uiCache) ? uiCache.canvasDpr : "?";
|
||||
const creature = diag.creatures || {};
|
||||
|
|
@ -165,7 +165,7 @@
|
|||
`item buckets:${diag.items?.bucketTypes ?? 0} dirty:${Boolean(diag.items?.bucketsDirty)} id-map:${diag.items?.idMapSize ?? 0} bucketRebuilds:${diag.items?.bucketRebuildsTotal ?? 0}`,
|
||||
`dpr ${currentDpr} cache ${window.TARINAI_APP?.cacheName || "?"} sw ${navigator.serviceWorker?.controller ? "controlled" : "uncontrolled"}`,
|
||||
`input ${input.currentMode || "?"} touchFirst:${Boolean(input.touchFirst)} coarse:${Boolean(input.pointerCoarse)} hover:${Boolean(input.hasHover)} compact:${Boolean(input.isCompactViewport)}`,
|
||||
`audio ${lastAudio.join(", ") || window.TarinaiAudio?.lastPlayedId || "-"}`,
|
||||
`audio ${lastAudio.join(", ") || window.TarinaiAudio.lastPlayedId || "-"}`,
|
||||
`events ${lastEvents.join(", ")}`,
|
||||
];
|
||||
lastText = lines.join("\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue