-
-
Notifications
You must be signed in to change notification settings - Fork 187
Open
Description
I deal with big data and some times preview rendering is here quite slow < 1 FPS.
Thus, I have now done some profiling and results are strange.
Take attached 3mf and code adjustments at the bottom of the issue. Then slice the sample and rendering the preview of the gcode.
The log states that (preview) rendering takes <0.3sec but I get >1sec if I manually stop the time with a stop watch (from "start rendering" to "end rendering"). In particular, >1sec is the real rendering time.
Do you know where the time is spent?
https://github.com/Ultimaker/Uranium/blob/master/UM/Qt/Bindings/MainWindow.py
import time
def _render(self):
tstart = time.perf_counter()
Logger.log("w", "start rendering")
if self._full_render_required:
renderer = self._app.getRenderer()
view = self._app.getController().getActiveView()
renderer.beginRendering()
view.beginRendering()
renderer.render()
view.endRendering()
renderer.endRendering()
self._full_render_required = False
self.renderCompleted.emit()
else:
self._app.getRenderer().reRenderLast()
tend = time.perf_counter()
Logger.log("w", "end rendering %s", str(tend - tstart))
Metadata
Metadata
Assignees
Labels
No labels