only applying dimming on frames where the animations were updated

This commit is contained in:
PS 2021-09-26 16:57:15 -05:00
parent 04b351e792
commit a1e6981bf2
3 changed files with 457 additions and 453 deletions

File diff suppressed because it is too large Load Diff

View File

@ -169,7 +169,7 @@ typedef DRAW_FONT_CODEPOINT(platform_draw_font_codepoint);
// Worker Threads
#define PLATFORM_THREAD_COUNT 0
#define PLATFORM_THREAD_COUNT 3
RESET_WORK_QUEUE(ResetWorkQueue)
{

View File

@ -800,7 +800,7 @@ BlumenLumen_CustomUpdate(gs_data UserData, app_state* State, context* Context)
}
// Dim the leds based on temp data
if (!BLState->DEBUG_IgnoreWeatherDimmingLeds)
if (State->AnimationSystem.UpdatesThisFrame > 0 && !BLState->DEBUG_IgnoreWeatherDimmingLeds)
{
led_buffer B0 = State->LedSystem.Buffers[0];
pixel P0 = B0.Colors[0];