From 49048c3998b1b7d8c2aa887ea65c0903bfe44008 Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 18 Dec 2021 12:56:52 -0500 Subject: [PATCH] Don't limit divisors in driver mode (#363) --- photon-client/src/views/PipelineViews/InputTab.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/photon-client/src/views/PipelineViews/InputTab.vue b/photon-client/src/views/PipelineViews/InputTab.vue index 764b7ce56..8b98e8e3a 100644 --- a/photon-client/src/views/PipelineViews/InputTab.vue +++ b/photon-client/src/views/PipelineViews/InputTab.vue @@ -170,7 +170,11 @@ // It would probably be cleaner if this checked that we're on the Raspi 3 instead of checking for GPU accel status const width = this.$store.getters.videoFormatList[ this.$store.getters.currentCameraSettings.currentPipelineSettings.cameraVideoModeIndex]['width']; - return unfilteredStreamDivisors.filter((x) => !this.$store.state.settings.general.gpuAcceleration || width / x < 400); + + // If GPU acceleration is enabled, the downsized width must be below 400px + // This check should be skipped if we're currently in driver mode + return unfilteredStreamDivisors.filter((x) => this.$store.getters.isDriverMode + || !this.$store.state.settings.general.gpuAcceleration || width / x < 400); }, getNumSkippedStreamDivisors() { return unfilteredStreamDivisors.length - this.getRawStreamDivisors().length;