Performance issue on scroll timeline

Hello, we updated our app to the new 8.1 version and now we are experiencing some performance issues while scrolling the chart.

I have two code samples one for 8.1: DHTMLX Snippet Tool
and one for 7.3.14, the one we used before: DHTMLX Snippet Tool

The code and data are the same in both, but it is noticeble how with the new version there is some lag while scrolling and how in the older version scroll is very smooth. It gets worse when the number of tasks increases. In the example, the issue is not that serious but in our application tasks are way more complex, a lot of styling and calculations are happening for each task, to the point where the app is completely unusable with the new version and was running fine before.

Hello Larissa,
Thank you for letting us know about that issue. Most likely, it occurs because in the older version, Gantt rendered the whole row with the split tasks even if they are outside the viewport. In the newer version, the split tasks outside the viewport are not rendered. And it seems to take some time to render them when you drag the timeline, though I don’t see any issues when using the scrollbars.
I will add it as a bug to our internal bug tracker. The dev team will fix it in the future, but I cannot give you any ETA.

Hello Larissa,
The dev team fixed the bug with the split tasks being displayed outside the viewport:
https://docs.dhtmlx.com/gantt/whatsnew.html#x6629x80x6630x:~:text=Performance%20improvement%20for%20Split%20Tasks%20rendering

You can see that the bug is no longer reproduced in the following sample:
http://snippet.dhtmlx.com/5/2056442ea