-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose synchronous render option on runtime object #340
Comments
Thanks for bringing this up! If I understand your problem right, it sounds much like the request here: #336 (comment) Where we have a list of deferred render calls that get invoked only in our wrapped
This change should land hopefully soon here! We had to shift briefly to some other priorities but we have some tested changes on our end in a branch to introduce this. |
Sounds like |
Hi sorry for the delay here, you can check out this API in |
Hi, I have checked |
I am using v2.7.4 with canvas, and managed to follow https://help.rive.app/runtimes/overview/web-js/low-level-api-usage in order to create my own renderLoop. My use case is however different as I want to create snapshots at particular times of rive animation.
The problem with the current API is that in order to have canvas rendered, one has to "seek" (call all the necessary artboard, renderer and animator methods) followed by two requestAnimationFrame:
The workaround I am using is customized rive.js where I just inserted my own render method:
replaced by
with this change in place I can replace rAF-s and simply call
I would like to propose a new
render()
method exposed on runtime object, so one can request rendering synchronously without having to involve animation frame request.The text was updated successfully, but these errors were encountered: