Flickering Effect (FOOC)

The flickering effect also called FOOC occurs when an original element is flashed to the user before the assigned variation is displayed. This happens because it usually takes some time (around 100ms) to load the variation configuration from the servers. How do we fix this?

Elecular allows you to fetch all needed experiments, and cache them when the game starts. This means that whenever Elecular loads a variation during the game, it is instant. If you call the LoadAllExperiments method in your Starting scene, you will not experience the flickering effect anymore. If you have elements to test in your Start Scene, then you will have to call the load method even before showing the Start Scene. You can do this by showing a loading screen.

using Elecular.API;

//Call this method to cache all variations and avoid Flickering
//Display loading screen if necessary
ElecularSettings.Instance.LoadAllExperiments(() =>
{
    //This callback is triggered when all the experiments are loaded.
    //Stop displaying loading screen
});

You only need to call this method once.

Last updated

Was this helpful?