option for webm exportFrames to use exportFps/playFps while recording #8
Replies: 2 comments 2 replies
-
Hi, Yannick. You're welcome. I think it will be difficult to sync the timing of ssam's animation loop ( I usually rely on ssam's own props, The global state |
Beta Was this translation helpful? Give feedback.
-
Reading your question again, I think you want to play the animation at For me, I want the rendering to a file happen as fast as it can. Also, if there's a lot of computation required within a frame rendering, it may be impossible to play at a desired frame rate while it is being recorded. Ssam uses webm-muxer - you might want to take a look at it to implement your own logic. |
Beta Was this translation helpful? Give feedback.
-
@cdaein, hi! first of all, thanks so much for the work on this repo.
currently when exporting a sketch to webm the loop gets requested on
requestAnimationFrame
. this is great for super fast exports, but will desync with animations that are for example initiated by asetTimeout
. is there a way i can change the behaviour for webm to wait forglobalState.frameRequested
so the export syncs up with the loop? i think this is already the case for mp4 by default, but i can't seem to figure out where/when to set this for webm. any help is the right direction is appreciated.Beta Was this translation helpful? Give feedback.
All reactions