Skip to content

In very large projects, switching tabs in editor takes a very long time #175

Description

@NighthowlerStudios

This is very likely to cause a large overhaul to the file reading system of the editor, however I feel it worthy of noting.

I found this oversight by accident, by creating a new project, with the Github of the editor and all of its demos nested as a folder inside the project. Big mistake on my part, which I later fixed, but it did reveal something concerning...

If the Editor is taking a long time parsing files, loading them for any of the tabs (Animation, Code, etc), it will freeze, sometimes for several seconds especially if focus of the window had recently been lost.

I suggest looking at a way to cache the results of these files in some manner (using dirty file checks to cache-miss if it was edited outside the editor), or other speed ups, to prevent the editor from having to read several thousands of files again and again just to judge which tool each file belongs to.

You can reproduce the slowdown by making the same mistake I did. However it is a worst case scenario, unlikely, but might be worth doing for lower end machines might be slowing down much more than my machine did.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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