mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-07 08:41:10 +08:00
⚡ Perf(custom): reduce init time of gallery page and upload page form 100ms to 6ms
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user