From 87fdec1c51e0ca865eda3794bc7f5cd768aee559 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 14 Oct 2024 20:59:59 +0200 Subject: [PATCH] Add preference to configure Disk I/O Thread priority --- gtk2_ardour/rc_option_editor.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index e360b4a137..424e13a5f5 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -4950,6 +4950,19 @@ These settings will only take effect after %1 is restarted.\n\ procs->set_note (string_compose (_("This setting will only take effect when %1 is restarted."), PROGRAM_NAME)); add_option (_("Performance"), procs); + +#ifndef PLATFORM_WINDOWS + ComboOption* iotp = new ComboOption ( + "io-thread-policy", + _("Disk I/O thread scheduling policy"), + sigc::mem_fun (*_rc_config, &RCConfiguration::get_io_thread_policy), + sigc::mem_fun (*_rc_config, &RCConfiguration::set_io_thread_policy) + ); + iotp->add (0, _("No priority")); + iotp->add (1, _("Realtime (FIFO)")); + iotp->add (1, _("Realtime (Round Robin)")); + add_option (_("Performance"), iotp); +#endif } /* Image cache size */