修复[dev]下agc启动时长时间白屏 #333

Merged
k88936 merged 2 commits from boot-time-diagnosis into master 2026-09-12 11:19:25 +08:00
Member

closes #324
当前瓶颈在 apps/ai-game-creator-shell/src-tauri/src/runner/protocol.rs:170 的整文件 SHA-256。Debug 二进制约 795 MiB,单次 hash 实测约 19 秒;GUI 启动时父进程和 Runner 子进程各 hash 一次,所以产生 32–43 秒启动时间。

fix:
把 sha digest 构建改成 opt-level = 3, 降低启动时间到1到2秒

closes #324 当前瓶颈在 apps/ai-game-creator-shell/src-tauri/src/runner/protocol.rs:170 的整文件 SHA-256。Debug 二进制约 795 MiB,单次 hash 实测约 19 秒;GUI 启动时父进程和 Runner 子进程各 hash 一次,所以产生 32–43 秒启动时间。 fix: 把 sha digest 构建改成 opt-level = 3, 降低启动时间到1到2秒
k88936 added 1 commit 2026-09-12 10:58:14 +08:00
优化调试配置:提升SHA-256计算性能,避免调试构建阻塞
Project CI / Repository checks (pull_request) Failing after 14s
Project CI / Backend tests (pull_request) Failing after 14s
Project CI / Frontend tests (pull_request) Successful in 3m5s
Project CI / Native shell tests (pull_request) Successful in 20m20s
cc9b95ddef
k88936 added 1 commit 2026-09-12 10:58:35 +08:00
Merge branch 'master' into boot-time-diagnosis
Project CI / Repository checks (pull_request) Successful in 2m43s
Project CI / Frontend tests (pull_request) Successful in 3m12s
Project CI / Backend tests (pull_request) Successful in 7m13s
Project CI / Native shell tests (pull_request) Successful in 20m20s
727794bc95
Author
Member

飞一样的感觉
shotmd-1789182418-compressed.webp

image.png

飞一样的感觉 ![shotmd-1789182418-compressed.webp](/attachments/db7adb1a-41a7-46ea-b3be-85c3db778492) ![image.png](/attachments/a1adf6bb-39ea-49be-9d7c-780c13ac22c5)
Author
Member

<< Code review finished >>

The Cargo profile overrides are valid and apply to the sha2 and digest dependencies in debug builds. The project builds and tests compile successfully with the optimized dependency settings.

Worked for 10m 31s

<< Code review finished >> The Cargo profile overrides are valid and apply to the sha2 and digest dependencies in debug builds. The project builds and tests compile successfully with the optimized dependency settings. Worked for 10m 31s
k88936 marked the pull request as ready for review 2026-09-12 11:15:05 +08:00
k88936 added this to the 陶泥儿gameAgent project 2026-09-12 11:16:28 +08:00
k88936 self-assigned this 2026-09-12 11:16:33 +08:00
k88936 merged commit e50d678411 into master 2026-09-12 11:19:25 +08:00
k88936 deleted branch boot-time-diagnosis 2026-09-12 11:19:25 +08:00
Sign in to join this conversation.