Skip to content
Snippets Groups Projects
  • Akihiko Odaki's avatar
    aeffd071
    ui: Deliver refresh rate via QemuUIInfo · aeffd071
    Akihiko Odaki authored
    
    This change adds a new member, refresh_rate to QemuUIInfo in
    include/ui/console.h. It represents the refresh rate of the
    physical display backend, and it is more appropriate than
    GUI update interval as the refresh rate which the emulated device
    reports:
    - sdl may set GUI update interval shorter than the refresh rate
      of the physical display to respond to user-generated events.
    - sdl and vnc aggressively changes GUI update interval, but
      a guests is typically not designed to respond to frequent
      refresh rate changes, or frequent "display mode" changes in
      general. The frequency of refresh rate changes of the physical
      display backend matches better to the guest's expectation.
    
    QemuUIInfo also has other members representing "display mode",
    which makes it suitable for refresh rate representation. It has
    a throttling of update notifications, and prevents frequent changes
    of the display mode.
    
    Signed-off-by: default avatarAkihiko Odaki <akihiko.odaki@gmail.com>
    Message-Id: <20220226115516.59830-3-akihiko.odaki@gmail.com>
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
    aeffd071
    History
    ui: Deliver refresh rate via QemuUIInfo
    Akihiko Odaki authored
    
    This change adds a new member, refresh_rate to QemuUIInfo in
    include/ui/console.h. It represents the refresh rate of the
    physical display backend, and it is more appropriate than
    GUI update interval as the refresh rate which the emulated device
    reports:
    - sdl may set GUI update interval shorter than the refresh rate
      of the physical display to respond to user-generated events.
    - sdl and vnc aggressively changes GUI update interval, but
      a guests is typically not designed to respond to frequent
      refresh rate changes, or frequent "display mode" changes in
      general. The frequency of refresh rate changes of the physical
      display backend matches better to the guest's expectation.
    
    QemuUIInfo also has other members representing "display mode",
    which makes it suitable for refresh rate representation. It has
    a throttling of update notifications, and prevents frequent changes
    of the display mode.
    
    Signed-off-by: default avatarAkihiko Odaki <akihiko.odaki@gmail.com>
    Message-Id: <20220226115516.59830-3-akihiko.odaki@gmail.com>
    Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
gtk-gl-area.c 8.90 KiB