Skip to content

Commit

Permalink
better transitions overspeed bugfix
Browse files Browse the repository at this point in the history
when the user wants less than 42 fps, respect this limit during transitions.
  • Loading branch information
softhack007 committed Jan 10, 2025
1 parent d915385 commit 8317c89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wled00/FX_fcn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,9 @@ void WS2812FX::service() {

if (frameDelay < speedLimit) frameDelay = FRAMETIME; // WLEDMM limit effects that want to go faster than target FPS
if (seg.mode != FX_MODE_HALLOWEEN_EYES) seg.call++;
if (seg.transitional && frameDelay > FRAMETIME_FIXED) frameDelay = FRAMETIME_FIXED; // force faster updates during transition // WLEDMM only if effect requested very slow updates

if (seg.transitional && frameDelay > max(int(FRAMETIME), int(FRAMETIME_FIXED)))
frameDelay = max(int(FRAMETIME), int(FRAMETIME_FIXED)); // force faster updates during transition // WLEDMM only if effect requested very slow updates

seg.lastBri = seg.currentBri(seg.on ? seg.opacity:0); // WLEDMM remember for next time
seg.handleTransition();
Expand Down

0 comments on commit 8317c89

Please sign in to comment.