Skip to content

Commit

Permalink
Some minor tweaks
Browse files Browse the repository at this point in the history
- CPU meter < 1% always shows as 0. It could get stuck because diff
  range.
- Remove some redundant logs restructure a couple of others
  • Loading branch information
baconpaul committed Sep 16, 2024
1 parent 44214ef commit 02780f7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
9 changes: 9 additions & 0 deletions src-ui/app/shared/HeaderRegion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,15 @@ void HeaderRegion::setVULevel(float L, float R)

void HeaderRegion::setCPULevel(float lev)
{
if (lev < 1)
{
if (cpuLevValue != 0)
{
cpuLevValue = lev;
cpuLevel->setText(fmt::format("{:.0f} %", 0.0));
}
return;
}
if (std::fabs(cpuLevValue - lev) > 1.5)
{
cpuLevValue = lev;
Expand Down
1 change: 0 additions & 1 deletion src-ui/theme/ThemeApplier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ void ThemeApplier::applyGroupMultiScreenTheme(juce::Component *toThis)

void ThemeApplier::applyVariantLoopTheme(juce::Component *toThis)
{
SCLOG_UNIMPL_ONCE("applyVariantLoopTheme - set this up to be blue!");
jstl::CustomTypeMap map;
map.addCustomClass<jcmp::DraggableTextEditableValue>(
detail::edit::variant::DraggableTextEditableValue);
Expand Down
1 change: 0 additions & 1 deletion src/engine/engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,6 @@ struct Engine : MoveableOnly<Engine>, SampleRateSupport
uint64_t pVer{0};
explicit UnstreamGuard(uint64_t sv)
{
SCLOG("Unstreaming engine::Engine. Version : " << scxt::humanReadableVersion(sv));
pIs = engine::Engine::isFullEngineUnstream;
pVer = engine::Engine::fullEngineUnstreamStreamingVersion;
engine::Engine::isFullEngineUnstream = true;
Expand Down
2 changes: 0 additions & 2 deletions src/engine/group_and_zone_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ HasGroupZoneProcessors<T>::spawnTempProcessor(int whichProcessor,

if (initFromDefaults)
{
SCLOG("Processor init from defaults [" << dsp::processor::getProcessorName(type)
<< "]");
// This is a no-op if you don't support keytrack
ps.previousIsKeytracked = -1;
ps.isKeytracked = tmpProcessor->getDefaultKeytrack();
Expand Down
3 changes: 3 additions & 0 deletions src/json/engine_traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ SC_STREAMDEF(scxt::engine::Engine, SC_FROM({
assert(to.getMessageController()->threadingChecker.isSerialThread());
auto sv{0};
findIf(v, "streamingVersion", sv);
SCLOG("Unstreaming engine state. Stream version : "
<< scxt::humanReadableVersion(sv));

engine::Engine::UnstreamGuard sg(sv);

// TODO: engine gets a SV? Guess maybe
Expand Down

0 comments on commit 02780f7

Please sign in to comment.