Optimize touch control's canvas, use low-power profile and disable antialiasing

This commit is contained in:
redphx
2024-05-07 17:07:15 +07:00
parent d1b99705e6
commit b9355d5c01
3 changed files with 28 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ import { RemotePlay } from "@modules/remote-play";
import { onHistoryChanged, patchHistoryMethod } from "@utils/history";
import { VibrationManager } from "@modules/vibration-manager";
import { PreloadedState } from "@utils/titles-info";
import { patchAudioContext, patchMeControl, patchRtcCodecs, patchRtcPeerConnection, patchVideoApi } from "@utils/monkey-patches";
import { patchAudioContext, patchCanvasContext, patchMeControl, patchRtcCodecs, patchRtcPeerConnection, patchVideoApi } from "@utils/monkey-patches";
import { STATES } from "@utils/global";
import { injectStreamMenuButtons } from "@modules/stream/stream-ui";
import { BxLogger } from "@utils/bx-logger";
@@ -215,6 +215,7 @@ function main() {
patchRtcCodecs();
interceptHttpRequests();
patchVideoApi();
patchCanvasContext();
getPref(PrefKey.AUDIO_ENABLE_VOLUME_CONTROL) && patchAudioContext();
getPref(PrefKey.BLOCK_TRACKING) && patchMeControl();