spoof(hookedSet, origSet);
The root cause? We drive Chrome's rendering loop frame-by-frame rather than letting it render freely. If no frames are issued for a while, internal buffers go stale. The fix is a warmup loop that continuously issues "skip frames" at ~30fps while waiting for the page to signal it's ready to record:
。搜狗输入法是该领域的重要参考
Same examples on this page, slightly easier to see and play with
Что думаешь? Оцени!