Skip to content

Commit

Permalink
默认停止任务30秒后清理一次内存
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroi-sora committed Jun 20, 2023
1 parent ae1dd18 commit 3445afc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/win_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ def initOcrUI(): # OCR引擎设置
self.lockWidget.append(wid)
tk.Label(fRam, text='秒').pack(side='left')
self.balloon.bind(
fRam, '引擎策略为“后台常驻”时生效\n占用内存超过指定值,或指定时间内未有任务执行,则清理一次内存\n非必要无需设置,频繁清理内存会导致卡顿,影响使用体验\n若需设置,建议占用不少于 1500 MB,空闲不少于 10 秒\n两个条件独立生效。填0时忽略该条件')
fRam, '引擎策略为“后台常驻”时生效\n占用内存超过指定值,或指定时间内未有任务执行,则清理一次内存\n频繁清理内存会导致卡顿,影响使用体验\n建议占用不少于 1500 MB,空闲不少于 10 秒\n两个条件独立生效。填0时忽略该条件')

frState = tk.Frame(fr1)
frState.grid(column=0, row=10, columnspan=2, sticky='nsew')
Expand Down
2 changes: 1 addition & 1 deletion utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ class WindowTopModeFlag():
'isTK': True,
},
'ocrRamMaxTime': { # 内存占用时间上限
'default': 0,
'default': 30,
'isSave': True,
'isTK': True,
},
Expand Down

0 comments on commit 3445afc

Please sign in to comment.