FabGL
ESP32 Display Controller and Graphics Library

◆ enableBackgroundPrimitiveExecution()

void enableBackgroundPrimitiveExecution ( bool  value)
inherited

Enables or disables drawings inside vertical retracing time.

Primitives are processed in background (for example in vertical retracing for VGA or in a separated task for SPI/I2C displays). This method can disable (or reenable) this behavior, making drawing instantaneous. Flickering may occur when drawings are executed out of retracing time.
When background executing is disabled the queue is emptied executing all pending primitives. Some displays (SPI/I2C) may be not updated at all when enableBackgroundPrimitiveExecution is False.

Parameters
valueWhen true drawings are done on background, when false drawings are executed instantly.

Definition at line 503 of file displaycontroller.cpp.