`rebuildBuffer` is still a very CPU intensive task and is blocking the main thread.
layerState
prepareFrame
renderFrame