summary |
log |
commit |
diff |
tree
raw |
patch |
inline | side by side (from parent 1:
6ee56d6)
The check was introduced back when st used gettimeofday.
The condition is also modified to increment the accuaracy of the
calculation.
dodraw = 1;
}
deltatime = TIMEDIFF(now, last);
dodraw = 1;
}
deltatime = TIMEDIFF(now, last);
- if(deltatime > (xev? (1000/xfps) : (1000/actionfps))
- || deltatime < 0) {
+ if(deltatime > 1000 / (xev ? xfps : actionfps)) {
dodraw = 1;
last = now;
}
dodraw = 1;
last = now;
}