--- nono/vm/syncer.h 2026/04/29 17:05:55 1.1.1.8 +++ nono/vm/syncer.h 2026/04/29 17:06:00 1.1.1.9 @@ -105,7 +105,7 @@ class Syncer : public Device uint GetPerfCounter() const { return perf_counter; } // モニタ更新の下請け - int MonitorUpdateSub(TextScreen& screen, uint64 vtime); + int MonitorScreenSub(TextScreen& screen, uint64 vtime); private: void ChangeMode(uint32 newmode); @@ -148,6 +148,9 @@ class Syncer : public Device uint sync_count {}; // 現在の1秒間での同期回数 uint last_sync_count {}; // 前回の1秒間での同期回数 + uint64 last_mpu_exec {}; + uint64 last_mpu_exec_per_sec {}; + // パフォーマンスカウンタ // perfq が移動平均用のバッファ。四捨五入用に10倍値を持っておく // (100% なら 1000)。perf_counter は perfq から求めた実行率で @@ -166,6 +169,6 @@ class Syncer : public Device Event *sync_event {}; }; -static inline Syncer *GetSyncer() { +inline Syncer *GetSyncer() { return Object::GetObject(OBJ_SYNCER); }