diff options
Diffstat (limited to 'servers/visual/visual_server_raster.cpp')
-rw-r--r-- | servers/visual/visual_server_raster.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp index fca3126604..163aa9bb07 100644 --- a/servers/visual/visual_server_raster.cpp +++ b/servers/visual/visual_server_raster.cpp @@ -97,6 +97,8 @@ void VisualServerRaster::draw(bool p_swap_buffers) { changes = 0; + VS::get_singleton()->emit_signal("frame_pre_draw"); + VSG::rasterizer->begin_frame(); VSG::scene->update_dirty_instances(); //update scene stuff @@ -122,7 +124,7 @@ void VisualServerRaster::draw(bool p_swap_buffers) { frame_drawn_callbacks.pop_front(); } - emit_signal("frame_drawn_in_thread"); + VS::get_singleton()->emit_signal("frame_post_draw"); } void VisualServerRaster::sync() { } |