Skip to content

Moved build to separate thread, improvement to ALC by better sweeping and loose-ends clearing#278

Merged
michaelsakharov merged 13 commits into
ProwlEngine:New-Editor-UIfrom
xZekro51:build-fixes-and-separate-thread
Jun 20, 2026
Merged

Moved build to separate thread, improvement to ALC by better sweeping and loose-ends clearing#278
michaelsakharov merged 13 commits into
ProwlEngine:New-Editor-UIfrom
xZekro51:build-fixes-and-separate-thread

Conversation

@xZekro51

Copy link
Copy Markdown

Moved the build process to a separate thread when AssetAsyncLoading is enabled in the project settings, improved the ALC Hotload by adding various helpers to sweep the Editor state, removing any loose ends, and adding Selection restoration via token.

Note: ALC reload still won't work in case the Editor is run in Debug mode from VS/Rider, as they keep the ALC alive through the session.

@michaelsakharov

michaelsakharov commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Regarding all the ClearCache stuff, could we make like a Attribute like OnAssemblyUnload that you can add to a static method that automatically registers it and gets cleared on assembly unload, we could add one for assembly unload/load and also a OnScriptCompile for a more generalized one when scripts start compiling, saves a lot of ClearCache methods all over the place needing to be called from one area.

@xZekro51

Copy link
Copy Markdown
Author

Agree with your previous comment completely, I just pushed the changes- Added three attributes (OnAssemblyLoad, OnAssemblyUnload, and OnScriptCompile) that are to be assigned to static parameterless methods, which would then be called at the appropriate points in time.

In some cases, we still had to leave the ClearCache out of it (e.g. Echo), but other than those cases it feels much better! These are also available to the user so that if they have to call anything, then they still can.

xZekro51 added 4 commits June 19, 2026 12:45
The method clears the loaded scenes/prefabs when reloading the alc, so that even if a scene/prefab is holding a reference to a user-defined script it won't stop the ALC from reloading
@michaelsakharov michaelsakharov merged commit 930092f into ProwlEngine:New-Editor-UI Jun 20, 2026
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants