mirror of
https://github.com/TomHarte/CLK.git
synced 2026-04-22 08:16:42 +00:00
Uses DisplayMetrics to disable supersampling when too slow.
This commit is contained in:
@@ -50,7 +50,7 @@ void Metrics::announce_did_resize() {
|
||||
frames_missed_ = frames_hit_ = 0;
|
||||
}
|
||||
|
||||
void Metrics::announce_draw_status(size_t, std::chrono::high_resolution_clock::duration, bool complete) {
|
||||
void Metrics::announce_draw_status(bool complete) {
|
||||
if(!complete) {
|
||||
++frames_missed_;
|
||||
} else {
|
||||
@@ -79,6 +79,10 @@ void Metrics::announce_draw_status(size_t, std::chrono::high_resolution_clock::d
|
||||
}
|
||||
}
|
||||
|
||||
void Metrics::announce_draw_status(size_t, std::chrono::high_resolution_clock::duration, bool complete) {
|
||||
announce_draw_status(complete);
|
||||
}
|
||||
|
||||
bool Metrics::should_lower_resolution() const {
|
||||
// If less than 100 frames are on record, return no opinion; otherwise
|
||||
// suggest a lower resolution if more than 10 frames in the last 100-200
|
||||
|
||||
Reference in New Issue
Block a user