Skip to content

StreamScale 0.6.1 - fixes the black screen, and starts 125x faster

Choose a tag to compare

@Cvencent Cvencent released this 08 Oct 15:00
· 7 commits to main since this release
onefile   25 s per start
onedir   0.2 s per start

Two things were wrong, and one of them broke a real session.

The session that broke

Sunshine was pointed at a copy of the tray exe:

"C:\...\Downloads\StreamScale.exe" apply

That copy did not understand apply. It treated the argument as an ordinary launch, started a second tray, and hit the single-instance guard. Sunshine waits for its prep-command to exit, so the teardown stalled for five and a half minutes — the client showed an empty desktop, and the display configuration was never restored, leaving a phantom second monitor behind.

Nothing surfaced as an error. The exe now handles apply / revert / show itself, at any path, and an unknown verb exits with a message instead of quietly becoming a tray. A command that runs but never exits is worse than one that fails — only the second is diagnosable.

Why it was slow

The onefile build unpacked ~19 MB into a temporary directory on every single run: 25 seconds. Sunshine calls the prep-command twice per stream, so that was ~50 seconds of dead waiting, and slow enough to look like a hang on its own.

The build is now onedir — the payload stays unpacked, so only the interpreter boot remains. The cost moves to install time, paid once per version: 40 MB across 1020 files, about 1.4 seconds to copy.

Also fixed

  • The command-line check read the exe's output, which a GUI build never produces (no stdout handle), so it could never match anything. It judges by behaviour now — and kills a process that fails to return, since a stray tray is what the check exists to prevent.
  • Listing running instances matched on the caller's own image name, so an upgrade staged elsewhere looked for the wrong process and could not stop the installed copy.
  • Path comparison is case-insensitive: Windows reports the same folder as both Temp and TEMP depending on who asks.

Upgrading from 0.6.0 or later: extract the archive, run the included 修复Sunshine配置.bat as administrator once, then restart Sunshine. That repoints the prep-commands at the new folder layout.

The program is now a folder, not a single file — keep _internal/ beside the exe.

299 assertions across eighteen checks, all passing.