Changeset 3456 for neercs


Ignore:
Timestamp:
May 14, 2009, 5:42:41 PM (11 years ago)
Author:
Pascal Terjan
Message:
  • Allow configuring max refresh rate
Location:
neercs/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/doc/neercs.1

    r3437 r3456  
    8787If this option is not set and none of these variables is defined,
    8888\fI/tmp\fR will be used.
     89.TP 5
     90.BI delay= n
     91Wait at least \fIn\fRms between refresh.
    8992.SH EXAMPLES
    9093.PP
  • neercs/trunk/src/attach.c

    r3455 r3456  
    387387            if(!screen_list->dp)
    388388                return;
    389             caca_set_display_time(screen_list->dp, screen_list->delay);
     389            caca_set_display_time(screen_list->dp, screen_list->delay*1000);
    390390            caca_set_cursor(screen_list->dp, 1);
    391391
  • neercs/trunk/src/configuration.c

    r2649 r3456  
    317317        {
    318318            screen_list->socket_dir = option->value;
     319        } else if(IS_TOKEN("delay"))
     320        {
     321            screen_list->requested_delay = atoi(option->value);
     322            screen_list->delay = atoi(option->value);
    319323        } else
    320324        {
  • neercs/trunk/src/main.c

    r3455 r3456  
    339339    screen_list->in_bell = 0;
    340340    screen_list->changed = 0;
    341     screen_list->delay = 1000000/60; /* Don't refresh more than 60 times per second */
     341    screen_list->requested_delay = 0;
     342    screen_list->delay = 1000/60; /* Don't refresh more than 60 times per second */
    342343    screen_list->pty = screen_list->prevpty = 0;
    343344    screen_list->dont_update_coords = 0;
  • neercs/trunk/src/neercs.h

    r3455 r3456  
    195195    int nb_to_grab;
    196196    int attach, forceattach;
     197    int requested_delay;
    197198
    198199    caca_canvas_t *cv;
  • neercs/trunk/src/server.c

    r3455 r3456  
    507507    screen_list->cv = caca_create_canvas(0, 0);
    508508    screen_list->dp = caca_create_display(screen_list->cv);
    509     caca_set_display_time(screen_list->dp, screen_list->delay);
     509    caca_set_display_time(screen_list->dp, screen_list->delay*1000);
    510510
    511511    if(!screen_list->dp)
Note: See TracChangeset for help on using the changeset viewer.