Skip to content

Make use of web-workers #169

Description

@Karinon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions