Skip to content
  • Daniel Stone's avatar
    Don't delay initial output paint · 3615ce19
    Daniel Stone authored and Pekka Paalanen's avatar Pekka Paalanen committed
    
    
    On startup, we cannot lock on to the repaint timer because it is unknown
    to us. We deal with this by claiming that the moment of entry into the
    repaint loop is the moment a frame returned, causing finish_frame to
    delay our initial repaint to (refresh_time - repaint_delay), typically
    around 9ms of utterly wasted time.
    
    Add an explicit stamp == NULL, to determine that we are just beginning
    our repaint loop, that the timings are in fact totally invalid, and that
    it would be beneficial to repaint the output immediately. This will only
    trigger when the display had previously been disabled or the previous
    state is unknown, e.g. at startup, or coming back from DPMS off.
    
    Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
    Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
    3615ce19