Browse Source

Fix menubar cpu usage not showing on regular builds

Signed-off-by: falkTX <falktx@falktx.com>
tags/23.07
falkTX 2 years ago
parent
commit
6d8a2c1970
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/override/MenuBar.cpp

+ 2
- 2
src/override/MenuBar.cpp View File

@@ -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…
Cancel
Save