Skip to content

Commit eccd176

Browse files
committed
fix: fixed issues with manual benchmarking
1 parent 7cbaa85 commit eccd176

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed

src/audio/base/DspHost.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ DspHost::DspHost(void* dspPtr, MessageHandlerFunc&& extraHandler) : _extraFunc(s
5858
dispatch(Message::BenchmarkDone, nullptr);
5959
});
6060

61+
loadBenchmarkData();
6162

6263
if(AppConfig::instance().get<bool>(AppConfig::BenchmarkOnBoot))
6364
QTimer::singleShot(30000, [this]{ runBenchmarks(); });
@@ -101,7 +102,7 @@ void DspHost::loadBenchmarkData()
101102

102103
for(int i = 0; i < values.size(); i++) {
103104
bool ok = false;
104-
output[i] = values[i].toInt(&ok);
105+
output[i] = values[i].toDouble(&ok);
105106
if(!ok)
106107
return false;
107108
}

src/interface/fragment/SettingsFragment.ui

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,6 @@
299299
<string>Convolver benchmarking</string>
300300
</property>
301301
<layout class="QVBoxLayout" name="verticalLayout_10">
302-
<item>
303-
<widget class="QCheckBox" name="benchmarkOnBoot">
304-
<property name="text">
305-
<string>Enable benchmarking on boot</string>
306-
</property>
307-
</widget>
308-
</item>
309302
<item>
310303
<layout class="QHBoxLayout" name="horizontalLayout_8">
311304
<property name="topMargin">
@@ -359,10 +352,36 @@
359352
</property>
360353
</widget>
361354
</item>
355+
<item>
356+
<spacer name="verticalSpacer_6">
357+
<property name="orientation">
358+
<enum>Qt::Vertical</enum>
359+
</property>
360+
<property name="sizeType">
361+
<enum>QSizePolicy::Fixed</enum>
362+
</property>
363+
<property name="sizeHint" stdset="0">
364+
<size>
365+
<width>20</width>
366+
<height>2</height>
367+
</size>
368+
</property>
369+
</spacer>
370+
</item>
371+
<item>
372+
<widget class="QCheckBox" name="benchmarkOnBoot">
373+
<property name="text">
374+
<string>Enable benchmarking on boot</string>
375+
</property>
376+
</widget>
377+
</item>
362378
<item>
363379
<widget class="QLabel" name="label_8">
380+
<property name="enabled">
381+
<bool>false</bool>
382+
</property>
364383
<property name="text">
365-
<string>Optimizes convolver performance but causes temporarily increased CPU usage for about 1 minute after launch.</string>
384+
<string>Benchmarking on boot may cause increased CPU usage for about one minute after launch.</string>
366385
</property>
367386
<property name="wordWrap">
368387
<bool>true</bool>

0 commit comments

Comments
 (0)