Skip to content

Commit

Permalink
Remove variable that is now unused
Browse files Browse the repository at this point in the history
  • Loading branch information
AI0867 committed Aug 31, 2017
1 parent 6730d52 commit 2d6c81b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/display.cpp
Expand Up @@ -1361,15 +1361,13 @@ void display::update_display()
}

if(preferences::show_fps() || benchmark) {
static int last_sample = SDL_GetTicks();
static int frames = 0;
++frames;
const int sample_freq = 10;
if(frames == sample_freq) {
const int this_sample = SDL_GetTicks();

const int fps = 1000 / *std::max_element(frametimes_.begin(), frametimes_.end());
last_sample = this_sample;
frames = 0;

if(fps_handle_ != 0) {
Expand Down

0 comments on commit 2d6c81b

Please sign in to comment.