Thanks to @A-KouZ1, for ideas to speed up the video playback! I now get about 30 FPS, rather than 4-5. What do you get? Should I change something? Tell me in the comments!
This is a demo of my screen recorder I'm making on Scratch. It collects the data of pixels, then plays them back.