Perf(custom): reduce init time of gallery page and upload page form 100ms to 6ms

This commit is contained in:
Kuingsmile
2026-01-15 12:46:26 +08:00
parent ffcb779347
commit 3775e1ff1a
11 changed files with 131 additions and 33 deletions

View File

@@ -169,7 +169,10 @@ class LifeCycle {
initI18n()
rpcServer.start()
busEventList.listen()
const isDisableGPU = picgo.getConfig<boolean>(configPaths.settings.isDisableGPU) || false
if (isDisableGPU) {
app.disableHardwareAcceleration()
}
if (process.env.NODE_ENV === 'development') {
MemoryMonitor.start(30000)
}