Fix compilation on Linux + minor nits
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user