Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kocik <kocikdav@gmail.com>2021-01-07 14:54:53 +0300
committerDavid Kocik <kocikdav@gmail.com>2021-01-07 14:54:53 +0300
commitf43b34fb578cb91c72f96c6a72910f8255ddf87c (patch)
tree4c8c3a0ca689022e89b338e87d8d344e348724b2
parent8e7958da124d128e8d4b8ebdec3ec6bf2c00af47 (diff)
wxWakeUpIdle when render timer ends to ensure idle function spawns and triggers rendering
-rw-r--r--src/slic3r/GUI/GLCanvas3D.cpp1
-rw-r--r--src/slic3r/GUI/NotificationManager.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp
index 71517880a..03d6b94ce 100644
--- a/src/slic3r/GUI/GLCanvas3D.cpp
+++ b/src/slic3r/GUI/GLCanvas3D.cpp
@@ -2996,6 +2996,7 @@ void GLCanvas3D::on_render_timer(wxTimerEvent& evt)
}
//render();
m_dirty = true;
+ wxWakeUpIdle();
}
void GLCanvas3D::request_extra_frame_delayed(int miliseconds)
diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp
index 410990ef7..5695eb62f 100644
--- a/src/slic3r/GUI/NotificationManager.cpp
+++ b/src/slic3r/GUI/NotificationManager.cpp
@@ -1444,7 +1444,7 @@ void NotificationManager::update_notifications()
}
if (next_render == 0)
- wxGetApp().plater()->get_current_canvas3D()->request_extra_frame();
+ wxGetApp().plater()->get_current_canvas3D()->request_extra_framee_delayed(33); //few milliseconds to get from GLCanvas::render
else if (next_render < max)
wxGetApp().plater()->get_current_canvas3D()->request_extra_frame_delayed(int(next_render));