xlib_playground

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 5eb1a066575df20b7049fed9a35548742a1c2b9b
parent 4a6efce433ac52ebc9fadb760192409701d6c1f2
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Sat, 17 Dec 2022 13:39:45 +0900

disable frame rate counter

Diffstat:
Mmain.c | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/main.c b/main.c @@ -228,9 +228,6 @@ game_play(void) next_tick(1.0/FPS); clock_gettime(CLOCK_MONOTONIC, &ts); t0 = ts.tv_nsec; - dt = t0 - t2 > 0 ? t0 - t2 : t0 - t2 + 1000 * 1000 * 1000; - printf("fps: %f\n", 1.0 / ((double) dt / 1000 / 1000 / 1000)); - t2 = t0; XClearArea(display, window, 0, 0, win_width, win_height, False); XFillRectangle(display, window, gc, square.px, square.py, square.width, square.height);