diff --git a/src/kmscon_conf.c b/src/kmscon_conf.c index 7d31609..feebe93 100644 --- a/src/kmscon_conf.c +++ b/src/kmscon_conf.c @@ -130,7 +130,6 @@ static void print_help() "\t available\n" "\t --primary-gpu-only [off] Use primary GPU only\n" "\t --all-gpus [on] Use all GPUs unconditionally\n" - "\t --fps [50] Limit frame-rate\n" "\t --render-engine [-] Console renderer\n" "\t --render-timing [off] Print renderer timing information\n" "\n" @@ -494,7 +493,6 @@ int kmscon_conf_new(struct conf_ctx **out) CONF_OPTION_BOOL(0, "hwaccel", &conf->hwaccel, false), CONF_OPTION_BOOL(0, "primary-gpu-only", &conf->primary_gpu_only, false), CONF_OPTION_BOOL(0, "all-gpus", &conf->all_gpus, true), - CONF_OPTION_UINT(0, "fps", &conf->fps, 50), CONF_OPTION_STRING(0, "render-engine", &conf->render_engine, NULL), CONF_OPTION_BOOL(0, "render-timing", &conf->render_timing, false), diff --git a/src/kmscon_conf.h b/src/kmscon_conf.h index 35dc513..f5a1a14 100644 --- a/src/kmscon_conf.h +++ b/src/kmscon_conf.h @@ -119,8 +119,6 @@ struct kmscon_conf_t { bool primary_gpu_only; /* use all GPUs unconditionally */ bool all_gpus; - /* frame-rate limit */ - unsigned int fps; /* render engine */ char *render_engine; /* print rendering engine timing information */ diff --git a/src/kmscon_terminal.c b/src/kmscon_terminal.c index 49bd6e8..6ebd7f9 100644 --- a/src/kmscon_terminal.c +++ b/src/kmscon_terminal.c @@ -76,7 +76,6 @@ struct kmscon_terminal { unsigned int min_cols; unsigned int min_rows; - unsigned long fps; struct tsm_screen *console; struct tsm_vte *vte; struct kmscon_pty *pty; @@ -487,8 +486,6 @@ int kmscon_terminal_register(struct kmscon_session **out, { struct kmscon_terminal *term; int ret; - struct itimerspec spec; - unsigned long fps; if (!out || !seat) return -EINVAL; @@ -506,19 +503,6 @@ int kmscon_terminal_register(struct kmscon_session **out, term->conf_ctx = kmscon_seat_get_conf(seat); term->conf = conf_ctx_get_mem(term->conf_ctx); - if (term->conf->fps) { - fps = 1000000000ULL / term->conf->fps; - if (fps == 0) - fps = 1000000000ULL / 100; - else if (fps > 200000000ULL) - fps = 200000000ULL; - } else { - fps = 1000000000ULL / 25; - } - - term->fps = 1000000000ULL / fps; - log_debug("FPS: %lu TIMER: %lu", term->fps, fps); - ret = tsm_screen_new(&term->console, log_llog); if (ret) goto err_free; @@ -559,10 +543,6 @@ int kmscon_terminal_register(struct kmscon_session **out, if (ret) goto err_ptyfd; - memset(&spec, 0, sizeof(spec)); - spec.it_value.tv_nsec = 1; - spec.it_interval.tv_nsec = fps; - ret = kmscon_seat_register_session(seat, &term->session, session_event, term); if (ret) {