forked from Aircoookie/WLED
-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PolarLights and Octopus: deterministic + SuperSync control
FX.cpp - SuperSync control on Polar lights and Octopus: only calculate pixels for the first panel
- Loading branch information
Showing
2 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ewowi
now / 25
basically creates fixed time-steps each 25ms, with nothing in between. Not sure you want that here.if you want higher accuracy, change the line to
SEGENV.step = (strip.now * cols * rows) / 25 ; //baseline 40fps
reason is integer arithmetic.
(uint / 25) * a * b
losses precision at the division, while doing the division as last operation preserves higher accuracy.