@@ -24,76 +24,73 @@ class PerformanceOptions : public GroupOption{
2424 LockMode::LOCK_WHILE_RUNNING,
2525 GroupOption::EnableMode::ALWAYS_ENABLED, true
2626 )
27- , PRECISE_WAKE_MARGIN(
28- " <b>Precise Wake Time Margin:</b><br>"
29- " Some operations require a thread to wake up at a very precise time - "
30- " more precise than what the operating system's scheduler can provide. "
31- " This option will force such operations to wake up this many "
32- " microseconds earlier, then busy wait until the time is reached. "
33- " The sys-botbase controller is an example of something that requires "
34- " extremely precise wake times." ,
35- LockMode::UNLOCK_WHILE_RUNNING,
36- " 2000 us"
37- )
3827 , REALTIME_THREAD_PRIORITY(
3928 " <b>Realtime Thread Priority:</b><br>"
4029 " Thread priority of real-time threads. (UI thread, audio threads)<br>"
4130 " Restart the program for this to fully take effect." ,
4231 DEFAULT_PRIORITY_REALTIME
4332 )
44- , REALTIME_INFERENCE_PRIORITY(
45- " <b>Inference Priority:</b><br>"
46- " Thread priority of realtime inference threads that must run fast "
47- " enough to keep a program working properly." ,
33+ , INFERENCE_PIVOT_PRIORITY(
34+ " <b>Inference Pivot Priority:</b><br>"
35+ " Thread priority of inference dispatcher threads." ,
4836 DEFAULT_PRIORITY_REALTIME_INFERENCE
4937 )
50- , NORMAL_INFERENCE_PRIORITY(
51- " <b>Normal Inference Priority:</b><br>"
52- " Thread priority of non-realtime inference threads that can be slow "
53- " without negatively affecting a program." ,
54- DEFAULT_PRIORITY_NORMAL_INFERENCE
55- )
5638 , COMPUTE_PRIORITY(
5739 " <b>Compute Priority:</b><br>"
5840 " Thread priority of computation threads." ,
5941 DEFAULT_PRIORITY_COMPUTE
6042 )
61- , THREAD_POOL_REALTIME_INFERENCE(
62- " Thread Pool: Real-time Inference" ,
43+ , REALTIME_THREAD_POOL(
44+ " Real-time Thread Pool" ,
45+ " Thread pool for tasks that must run fast enough to keep a "
46+ " program running properly.<br>"
47+ " Restart program for changes to take full effect." ,
6348 DEFAULT_PRIORITY_REALTIME_INFERENCE,
6449 0.5
6550 )
66- , THREAD_POOL_NORMAL_INFERENCE(
67- " Thread Pool: Normal Inference" ,
51+ , NORMAL_THREAD_POOL(
52+ " Normal Thread Pool" ,
53+ " Thread pool for tasks that can be slow without negatively "
54+ " affecting a program.<br>"
55+ " Restart program for changes to take full effect." ,
6856 DEFAULT_PRIORITY_NORMAL_INFERENCE,
6957 1.0
7058 )
59+ , PRECISE_WAKE_MARGIN(
60+ " <b>Precise Wake Time Margin:</b><br>"
61+ " Some operations require a thread to wake up at a very precise time - "
62+ " more precise than what the operating system's scheduler can provide. "
63+ " This option will force such operations to wake up this many "
64+ " microseconds earlier, then busy wait until the time is reached. "
65+ " The sys-botbase controller is an example of something that requires "
66+ " extremely precise wake times." ,
67+ LockMode::UNLOCK_WHILE_RUNNING,
68+ " 2000 us"
69+ )
7170 {
72- PA_ADD_OPTION (PRECISE_WAKE_MARGIN );
71+ PA_ADD_OPTION (PROCESSOR_LEVEL );
7372
7473 PA_ADD_OPTION (REALTIME_THREAD_PRIORITY);
75- PA_ADD_OPTION (REALTIME_INFERENCE_PRIORITY);
76- PA_ADD_OPTION (NORMAL_INFERENCE_PRIORITY);
74+ PA_ADD_OPTION (INFERENCE_PIVOT_PRIORITY);
7775 PA_ADD_OPTION (COMPUTE_PRIORITY);
7876
79- PA_ADD_OPTION (THREAD_POOL_REALTIME_INFERENCE );
80- PA_ADD_OPTION (THREAD_POOL_NORMAL_INFERENCE );
77+ PA_ADD_OPTION (REALTIME_THREAD_POOL );
78+ PA_ADD_OPTION (NORMAL_THREAD_POOL );
8179
82- PA_ADD_OPTION (PROCESSOR_LEVEL );
80+ PA_ADD_OPTION (PRECISE_WAKE_MARGIN );
8381 }
8482
8583public:
86- MicrosecondsOption PRECISE_WAKE_MARGIN ;
84+ ProcessorLevelOption PROCESSOR_LEVEL ;
8785
8886 ThreadPriorityOption REALTIME_THREAD_PRIORITY;
89- ThreadPriorityOption REALTIME_INFERENCE_PRIORITY;
90- ThreadPriorityOption NORMAL_INFERENCE_PRIORITY;
87+ ThreadPriorityOption INFERENCE_PIVOT_PRIORITY;
9188 ThreadPriorityOption COMPUTE_PRIORITY;
9289
93- ThreadPoolOption THREAD_POOL_REALTIME_INFERENCE ;
94- ThreadPoolOption THREAD_POOL_NORMAL_INFERENCE ;
90+ ThreadPoolOption REALTIME_THREAD_POOL ;
91+ ThreadPoolOption NORMAL_THREAD_POOL ;
9592
96- ProcessorLevelOption PROCESSOR_LEVEL ;
93+ MicrosecondsOption PRECISE_WAKE_MARGIN ;
9794};
9895
9996
0 commit comments