Use the same technique that we use on x11 systems to schedule/throttle painting frames. refs: https://github.com/wez/wezterm/discussions/2419
Use the same technique that we use on x11 systems to schedule/throttle painting frames. refs: https://github.com/wez/wezterm/discussions/2419