MCPcopy Create free account
hub / github.com/FastLED/FastLED / setUseChangeGrid

Method setUseChangeGrid

src/fl/fx/2d/wave.h:276–279  ·  view source on GitHub ↗

@brief Enable/disable change grid tracking optimization @param enabled If true, uses change tracking to optimize updates Change grid tracking preserves set points over multiple iterations for more stable results, but may reduce dramatic visual effects. Disabling saves memory but may cause more oscillation.

Source from the content-addressed store, hash-verified

274 /// for more stable results, but may reduce dramatic visual effects.
275 /// Disabling saves memory but may cause more oscillation.
276 void setUseChangeGrid(bool enabled) {
277 // Set whether to use the change grid tracking optimization.
278 mWaveSim.setUseChangeGrid(enabled);
279 }
280
281 /// @brief Get current change grid tracking setting
282 /// @return True if change grid tracking is enabled

Callers 1

uiFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected