13
0

Set Automationwatch thread priority (needs to be higher than GUI)

This fixes an issue with sparse automation touch/write when the CPU is
busy (stationary playhead, waveform rendering, or just high DSP load)
This commit is contained in:
Robin Gareus 2017-08-29 17:16:03 +02:00
parent 229c9584bf
commit 6ab00534c0

View File

@ -22,6 +22,7 @@
#include <glibmm/timer.h>
#include "pbd/compose.h"
#include "pbd/pthread_utils.h"
#include "ardour/automation_control.h"
#include "ardour/automation_watch.h"
@ -185,6 +186,7 @@ AutomationWatch::timer ()
void
AutomationWatch::thread ()
{
pbd_set_thread_priority (pthread_self(), SCHED_FIFO, -25);
while (_run_thread) {
Glib::usleep ((gulong) floor (Config->get_automation_interval_msecs() * 1000));
timer ();