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

Breaks Phaser-based games

Open hackergrrl opened this issue 9 years ago • 4 comments

I'm not sure whether this is ultimately an upstream or downstream issue, but when I start the GIF capturer my game seems to freeze. I'm assuming this has something to do with the methods CCapture overrides, but haven't had a chance to dig deeper. I'd really love to be able to use this lib to record gameplay videos.

hackergrrl avatar Mar 26 '15 21:03 hackergrrl

Do you have an example that I can check?

spite avatar Mar 26 '15 22:03 spite

Clone this repo and run locally (you'll likely need a local http server). Hit spacebar to begin recording. You'll see that the game stops animating. The render method is still being called but not update, which maybe suggests the logic that overrides the time methods is preventing Phaser from issuing updates to game states. (NB: removing the logic in CCapture.js that overrides time methods "fixes" the problem, although obviously the gains of fixed framerate are lost.)

https://github.com/noffle/phaser-ccapture-breaking

Let me know if I can provide any further information!

(cc @photonstorm, who I can give further context to out-of-band if desired)

hackergrrl avatar Mar 27 '15 00:03 hackergrrl

I'll take a look as soon as possible, hopefully this weekend. I'll keep you posted!

spite avatar Mar 27 '15 00:03 spite

I am getting the same problem too for the WEBM encoder. For some reason, start() is blocking.

gching avatar Jun 20 '16 23:06 gching