diff --git a/frontend/wasm/src/common.ts b/frontend/wasm/src/common.ts index 3c98573..d38bbfd 100644 --- a/frontend/wasm/src/common.ts +++ b/frontend/wasm/src/common.ts @@ -38,7 +38,7 @@ export type MessageFromWorkerType = { replyToId?: number } & ( { type: "rttData", data: string } | { type: "lcdSleeping", data: boolean } | { type: "cpuSleeping", data: boolean } | - { type: "performance", data: { loopTime: number, ips: number, totalSRAM: number, pins: number } } | + { type: "performance", data: { loopTime: number, cps: number, totalSRAM: number, pins: number } } | { type: "backupData", data: ArrayBuffer } | { type: "commandOutput", data: string } | { type: "aborted", data: any } diff --git a/frontend/wasm/src/components/Emulator.vue b/frontend/wasm/src/components/Emulator.vue index 90005c5..5817781 100644 --- a/frontend/wasm/src/components/Emulator.vue +++ b/frontend/wasm/src/components/Emulator.vue @@ -35,7 +35,7 @@ template(v-if="!isReady") .form-check.form-switch input.form-check-input(type="checkbox" v-model="turboMode" id="turboMode") label.form-check-label(for="turboMode") Turbo mode - div Instructions per second: {{ numberFmt.format(performance.ips.value.toFixed(0)) }} + div {{ numberFmt.format(performance.cps.value.toFixed(0)) }} Hz ({{speedPercentage.toFixed(0)}}%) div Loop time: {{ performance.loopTime.value.toFixed(0) }} ms div CPU: {{ isCpuSleeping ? "Sleeping" : "Running" }} div RAM size: {{ numberFmt.format(performance.sramSize.value) }} bytes @@ -70,7 +70,7 @@ template(v-if="!isReady")