Core: Re-write frame limiter

Now based on std::chrono, and also works in terms of emulated time
instead of frames, so we can in the future frame-limit even when the
display is disabled, etc.

The frame limiter can also be enabled along with v-sync now, which
should be useful for those with displays running at more than 60 Hz.
This commit is contained in:
Yuri Kunde Schlesner 2017-02-20 16:31:59 -08:00
parent b285c2a4ed
commit fb1979d7e2
5 changed files with 53 additions and 42 deletions

View file

@ -94,6 +94,7 @@ public:
}
PerfStats perf_stats;
FrameLimiter frame_limiter;
private:
/**