Fix menubar cpu usage not showing on regular builds
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
e463fa4dfb
commit
6d8a2c1970
1 changed files with 2 additions and 2 deletions
|
@ -769,11 +769,11 @@ struct MeterLabel : ui::Label {
|
|||
// }
|
||||
|
||||
#if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
|
||||
text = string::f("%.1f fps", 1.0 / frameDurationAvg);
|
||||
#else
|
||||
double meterAverage = APP->engine->getMeterAverage();
|
||||
double meterMax = APP->engine->getMeterMax();
|
||||
text = string::f("%.1f fps %.1f%% avg %.1f%% max", 1.0 / frameDurationAvg, meterAverage * 100, meterMax * 100);
|
||||
#else
|
||||
text = string::f("%.1f fps", 1.0 / frameDurationAvg);
|
||||
#endif
|
||||
|
||||
Label::step();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue