Skip to content

Prevent editor from freezing during project load and added loading overlay - #882

Open
thvgger wants to merge 1 commit into
KaijuEngine:masterfrom
thvgger:master
Open

Prevent editor from freezing during project load and added loading overlay#882
thvgger wants to merge 1 commit into
KaijuEngine:masterfrom
thvgger:master

Conversation

@thvgger

@thvgger thvgger commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

• Asynchronous Loading: Moved ed.project.Open(), ed.project.Initialize(), and ed.project.TryUpgrade() inside editor_project_setup.go into background Goroutines.
• Main Thread Synchronization: Once the heavy file operations and parsing are complete, execution is handed back to the UI thread via ed.host. RunOnMainThread() to safely finalize the engine state and UI setup.
• Loading UI Indicator: Added a clean, non-intrusive loading modal (.loadingModal) to the new_project_overlay.go.html template. It safely blocks interactions (like duplicate clicks on "Create Project") by using an invisible .loadingOverlay shield that covers the panel until the background Go routines invoke the close() callback.

Enhance project creation and loading overlays
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.

1 participant