ccapture.js icon indicating copy to clipboard operation
ccapture.js copied to clipboard

Using with setInterval

Open TiagoSilvaPereira opened this issue 8 years ago • 1 comments

I'm trying to take a screen capture of my app (made with BabylonJS), but i need to limit the quantity of images generated, because my app runs with 60 FPS.

I have tryed limit the capture every 200ms in my renderLoop, but this returns the error: Uncaught Error: Width and height must be set prior to rendering.

How can i make it?

Thanks a lot

TiagoSilvaPereira avatar Jun 17 '16 20:06 TiagoSilvaPereira

You can use timeLimit together with framerate to get the number of frames you want. That error you're getting it's possibly because the capturer is not getting frames.

Why do you say you need to limit the quantity of frames captured because your app runs at 6FPS?

spite avatar Jun 18 '16 21:06 spite