提交 5e95b865 编写于 作者: J Jonathan Thomas

Removing some unused settings

上级 14ecc519
......@@ -2231,10 +2231,6 @@ msgstr ""
msgid "Debug Mode (Verbose)"
msgstr ""
#: Settings for omp_threads_enabled
msgid "Process Video Frames in Parallel (Experimental)"
msgstr ""
#: Settings for debug-port
msgid "Debug Mode (Port)"
msgstr ""
......
......@@ -422,14 +422,6 @@
"values": [],
"restart": true
},
{
"value": true,
"title": "Process Video Frames in Parallel (Experimental)",
"type": "bool",
"restart": false,
"category": "Performance",
"setting": "omp_threads_enabled"
},
{
"min": 0,
"max": 128,
......
......@@ -67,7 +67,7 @@ class Export(QDialog):
ExportStarted = pyqtSignal(str, int, int)
ExportFrame = pyqtSignal(str, int, int, int, str)
ExportEnded = pyqtSignal(str)
ExportEnded = pyqtSignal(str)
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
......@@ -111,7 +111,6 @@ class Export(QDialog):
self.txtChannels.setVisible(False)
# Set OMP thread disabled flag (for stability)
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = True
openshot.Settings.Instance().HIGH_QUALITY_SCALING = True
project_timeline = get_app().window.timeline_sync.timeline
......@@ -1012,12 +1011,6 @@ class Export(QDialog):
# Clear all cache
self.timeline.ClearAllCache()
# Re-set OMP thread enabled flag
if self.s.get("omp_threads_enabled"):
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = False
else:
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = True
# Return scale mode to lower quality scaling (for faster previews)
openshot.Settings.Instance().HIGH_QUALITY_SCALING = False
......@@ -1066,14 +1059,6 @@ class Export(QDialog):
# Resume export
return
# Re-set OMP thread enabled flag
# NOTE: This is always called when closing the export modal, and thus
# the keyframes are always scaled back to the original FPS if needed.
if self.s.get("omp_threads_enabled"):
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = False
else:
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = True
# Return scale mode to lower quality scaling (for faster previews)
openshot.Settings.Instance().HIGH_QUALITY_SCALING = False
......
......@@ -2927,12 +2927,6 @@ class MainWindow(updates.UpdateWatcher, QMainWindow):
else:
openshot.Settings.Instance().PLAYBACK_AUDIO_DEVICE_NAME = ""
# Set OMP thread enabled flag (for stability)
if s.get("omp_threads_enabled"):
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = False
else:
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = True
# Set scaling mode to lower quality scaling (for faster previews)
openshot.Settings.Instance().HIGH_QUALITY_SCALING = False
......
......@@ -485,14 +485,6 @@ class Preferences(QDialog):
# Stop autosave timer
get_app().window.auto_save_timer.stop()
elif param["setting"] == "omp_threads_enabled":
if (state == Qt.Checked):
# Enable OMP multi-threading
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = False
else:
# Disable OMP multi-threading
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = True
# Check for restart
self.check_for_restart(param)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册