Merge "Add sleep in EffectThread to avoid busy wait"