Fix compilation on Linux + minor nits

This commit is contained in:
irisz64
2025-07-26 00:26:29 +02:00
parent 8fbac50131
commit ef05bcfac6
6 changed files with 20 additions and 20 deletions

View File

@@ -6,7 +6,7 @@ EmuThread::EmuThread(const std::shared_ptr<n64::Core> &core, double &fps, Render
SettingsWindow &settings) noexcept :
renderWidget(renderWidget), core(core), settings(settings), fps(fps) {}
void EmuThread::run() noexcept {
void EmuThread::run() const noexcept {
if(!core->romLoaded) return;
auto lastSample = std::chrono::high_resolution_clock::now();
@@ -34,9 +34,7 @@ void EmuThread::run() noexcept {
oneSecondPassed = true;
return;
}
lastSample = endFrameTime;
avgFps /= sampledFps;
sampledFps = 0;
fps = 1000.0 / avgFps;
}
}