Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play mode launch is very slow when VS debugger is attached #351

Open
shinymerlyn opened this issue Aug 17, 2022 · 0 comments
Open

Play mode launch is very slow when VS debugger is attached #351

shinymerlyn opened this issue Aug 17, 2022 · 0 comments

Comments

@shinymerlyn
Copy link

I profiled the issue, and it's due to reloading "loose" assets while doing the app domain reload.

image

When I comment out NodeEditorAssetModProcessor.OnReloadEditor the problem seems to reduce significantly.

This is probably project and machine dependent. In my project it drops from 1:30s to 20s, on my workstation. Other coworkers with less overbuilt machines are probably being affected much worse by this problem. This project has a bunch of SO types attached to node graphs, so it is doing a ton of work during this reload. There's only about 300 graphs with 5-10 objects each, and that seems to be enough to destroy performance. If there's a way to lazy-initialize or lazy-refresh individual items then that would probably be better.

Note that despite the profiler mentioning <MySO>.ctor(), and Unity having some guidance on trying to improve reload time of SOs (https://forum.unity.com/threads/long-waiting-times-in-the-editor-slow-asset-refresh-when-modifying-any-script.981384/), I don't think it is applicable in this case. These SOs are basically just data, with no init code defined.

I think the suggestion on this ticket may also help with this problem, though I don't know all the knock-on effects of that solution: #342

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant