feat(encoding): add detection performance mode

This commit is contained in:
InfinityPacer
2024-11-27 15:32:09 +08:00
parent 2deaec1fc6
commit de3347cea1
+11 -2
View File
@@ -28,6 +28,7 @@ const SystemSettings = ref<any>({
GLOBAL_IMAGE_CACHE: false, GLOBAL_IMAGE_CACHE: false,
BIG_MEMORY_MODE: false, BIG_MEMORY_MODE: false,
DB_WAL_ENABLE: false, DB_WAL_ENABLE: false,
ENCODING_DETECTION_PERFORMANCE_MODE: true,
// 媒体 // 媒体
TMDB_API_DOMAIN: null, TMDB_API_DOMAIN: null,
TMDB_IMAGE_DOMAIN: null, TMDB_IMAGE_DOMAIN: null,
@@ -700,7 +701,7 @@ onDeactivated(() => {
<VWindowItem value="dev"> <VWindowItem value="dev">
<div> <div>
<VRow> <VRow>
<VCol cols="12" md="6"> <VCol cols="12" md="4">
<VSwitch <VSwitch
v-model="SystemSettings.Advanced.DEBUG" v-model="SystemSettings.Advanced.DEBUG"
label="DEBUG日志" label="DEBUG日志"
@@ -708,7 +709,7 @@ onDeactivated(() => {
persistent-hint persistent-hint
/> />
</VCol> </VCol>
<VCol cols="12" md="6"> <VCol cols="12" md="4">
<VSwitch <VSwitch
v-model="SystemSettings.Advanced.PLUGIN_AUTO_RELOAD" v-model="SystemSettings.Advanced.PLUGIN_AUTO_RELOAD"
label="插件热加载" label="插件热加载"
@@ -716,6 +717,14 @@ onDeactivated(() => {
persistent-hint persistent-hint
/> />
</VCol> </VCol>
<VCol cols="12" md="4">
<VSwitch
v-model="SystemSettings.Advanced.ENCODING_DETECTION_PERFORMANCE_MODE"
label="编码探测性能模式"
hint="优先提升探测效率,但可能降低编码探测的准确性"
persistent-hint
/>
</VCol>
</VRow> </VRow>
</div> </div>
</VWindowItem> </VWindowItem>