RWELabs/Stardew-Valley-Mod-Manager

[Issue] Mod Manager freezes briefly on Splash screen when Validating Directories.

Closed this issue · 1 comments

Describe the Issue
When launching the Stardew Valley Mod Manager, the splash screen seems to freeze at some point when the splash text reads "Validating Directories..."

Steps to Replicate
Steps to reproduce the behavior:

  1. Open Stardew Valley Mod Manager
  2. Observe splash screen loading indicator stop animating and window cannot be moved at "Validating Directories" stage.

Expected behavior
The loading indicator should continue to animate and the window should not crash.

Environment:

  • Windows Version: Windows 11
  • Mod Manager Version: 220601, 220701 (alpha channel)

Suggested Resolution
Seems the UI thread may be being used by the directory validation processes. As the application has become heavier, more tasks are being completed and it's started creating a hang issue. Consider moving non UI processes to a different thread?

Solution
This requires a more or less entire re-write of the code base for the splash screen. It is now structured, less messy and more efficient, with processes now happening in multiple BackgroundWorkers.