Browse Source

Do not smooth the render time; the calling application can do it.

tags/v0.99.beta17
Sam Hocevar sam 15 years ago
parent
commit
b0a88ddd01
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      caca/graphics.c

+ 2
- 2
caca/graphics.c View File

@@ -173,8 +173,8 @@ int caca_refresh_display(caca_display_t *dp)
_caca_sleep(IDLE_USEC); _caca_sleep(IDLE_USEC);
} }


/* Update the sliding mean of the render time */
dp->rendertime = (7 * dp->rendertime + ticks) / 8;
/* Update the render time */
dp->rendertime = ticks;


dp->lastticks = ticks - dp->delay; dp->lastticks = ticks - dp->delay;




Loading…
Cancel
Save