Since we have a play button now, it gets quite obvious that loading new data is pausing the main thread due to heavy calculations. Just enable Rotate and the Play button to experience it yourself. I briefly checked a gaussian reduced dataset (with the data being local on my machine) which took 5 seconds to load and render. Gridlook used 4 of these 5 seconds for some calculations which blocked the main thread.
I moved all the calculations into web workers via vibe-coding a, which made the rotation during play much smoother. Unfortunately, the changes where quite big and it didn't feel right to introduce them like this. But I am planning to look into this later a bit more.
Since we have a play button now, it gets quite obvious that loading new data is pausing the main thread due to heavy calculations. Just enable
Rotateand the Play button to experience it yourself. I briefly checked a gaussian reduced dataset (with the data being local on my machine) which took 5 seconds to load and render. Gridlook used 4 of these 5 seconds for some calculations which blocked the main thread.I moved all the calculations into web workers via vibe-coding a, which made the rotation during
playmuch smoother. Unfortunately, the changes where quite big and it didn't feel right to introduce them like this. But I am planning to look into this later a bit more.