Skip to content

Performance DROPS suddenly as artboard.draw() calls get to 4 #390

@MattiaWasFound

Description

@MattiaWasFound

Image

Hardware: Firefox 133.0, NVIDIA 4070 SUPER, Intel i7-13700KF, 165hz monitor
Rive Package: @rive-app/webgl-advanced 2.21.6
Bug Source: https://github.com/RiveDegradation/RiveDegradation.github.io
Interactive Demo: https://rivedegradation.github.io/

Expected Behaviour:

Rendering an artboard X times should decrease performance linearly as x increases. o(n) or similar. (Obviously it's probably way more complex than this!)

Image

2 x artboard.draw() calls -> 165 FPS
3 x artboard.draw() calls -> 164 FPS
4 x artboard.draw() calls -> 163 FPS
.. etc ...

Actual Behaviour:

When using Firefox, performance just DROPS when rendering an artboard just four times.

Image

Specifically:
2 x artboard.draw() calls -> 165 FPS
3 x artboard.draw() calls -> 165 FPS (though frame time spikes appear here..)

...ready for the jump?
4 x artboard.draw() calls -> 60 FPS 🚨🚨🚨🚨

..and then:
...25 x artboard.draw() calls -> Still 60 FPS!

Clearly a bug since 25 x artboard.draw() calls take the same as 4X!!! It's a quantic jump :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions