Skip to content

Commit

Permalink
Increase max render memory in FilterDialog. (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoTavares committed Dec 11, 2020
1 parent 459ce4a commit 71d9790
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cuegui/cuegui/FilterDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
FILTERTYPE = opencue.compiled_proto.filter_pb2.FilterType.keys()
PAUSETYPE = ["Pause", "Unpause"]
MEMOPTTYPE = ["Enabled", "Disabled"]
MAX_RENDER_MEM = 251.0


class FilterDialog(QtWidgets.QDialog):
Expand Down Expand Up @@ -446,7 +447,7 @@ def createAction(self):
"How much memory (in GB) should each render layer require?",
4.0,
0.1,
47.0,
MAX_RENDER_MEM,
2)
value = int(value * 1048576)

Expand Down Expand Up @@ -671,6 +672,7 @@ def __setValue(self, value = None):
value = widget.value()

elif self.rpcObject.type() in (opencue.api.filter_pb2.SET_ALL_RENDER_LAYER_MEMORY,):
widget.setMaximum(MAX_RENDER_MEM)
value = int(widget.value() * 1048576)

elif self.rpcObject.type() in (opencue.api.filter_pb2.SET_JOB_MAX_CORES,
Expand Down Expand Up @@ -715,6 +717,7 @@ def updateWidgets(self):
widget = NoWheelDoubleSpinBox(self.parent())
widget.setDecimals(2)
widget.setSingleStep(.10)
widget.setMaximum(MAX_RENDER_MEM)
widget.editingFinished.connect(self.__setValue)

elif self.rpcObject.type() in (opencue.api.filter_pb2.SET_JOB_MAX_CORES,
Expand Down

0 comments on commit 71d9790

Please sign in to comment.