mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: presentation: clean up frame interval count calculation
This commit is contained in:
parent
b8960f930d
commit
9ba702ce00
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -100,7 +100,7 @@ presented(void *data,
|
|||
unsigned frame_count = 0;
|
||||
if (tll_length(term->window->on_outputs) > 0) {
|
||||
const struct monitor *mon = tll_front(term->window->on_outputs);
|
||||
frame_count = (double)(diff.tv_sec * 1000000 + diff.tv_usec) / (1. / mon->refresh * 1000000.);
|
||||
frame_count = (diff.tv_sec * 1000000. + diff.tv_usec) / (1000000. / mon->refresh);
|
||||
}
|
||||
|
||||
presentation_statistics.total++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue