statelyai / studio-issues

Report issues found in Stately Studio
5 stars 0 forks source link

Bug: Viewport panning stuttering in Firefox #161

Open tillbaks opened 1 year ago

tillbaks commented 1 year ago

Description

Moving around the entire machine or a few states is smooth, this is only related to panning the viewport.

I have been comparing to chromium on the same PC where it is smooth.

On my laptop it starts to happen on machines that are around 20 states and 20 transitions. Like this machine: https://stately.ai/registry/editor/356ad526-0875-4b4d-b964-f6e710c72075?machineId=8174e2bd-a04a-4287-bee6-3128c8c500e1

Expected result

Similar performance when panning the viewport as in Chromium

Actual result

Panning the viewport (scrolling with a touchpad) is extremely stuttery. fast scrolling = the view can take several seconds to catch up.

Which browsers are you seeing the problem on?

Firefox

Additional details

1 cpu core goes to 100% when scrolling (but this is the same in chromium where it's smooth anyway)

CPU: Intel Core i5-10500H CPU @ 2.50GHz Firefox: (Developer Edition) 114.0b5 OS: Arch Linux

davidkpiano commented 11 months ago

We've recently made a lot of performance improvements in this area. There's still more improvements to be made, but it should be better.