summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authormyaaaaaaaaa <103326468+myaaaaaaaaa@users.noreply.github.com>2023-04-30 14:55:29 -0400
committermyaaaaaaaaa <103326468+myaaaaaaaaa@users.noreply.github.com>2023-05-08 12:02:52 -0400
commitc55892cc5ca10008214e971de2543bf9f74aa992 (patch)
treeabc728f35b92be737aa05828dbe0404cdaf224d4 /main
parent9f12e7b52d944281a39b7d3a33de6700c76cc23a (diff)
downloadredot-engine-c55892cc5ca10008214e971de2543bf9f74aa992.tar.gz
Print CPU and GPU usage statistics after Movie Maker is finished
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 5e0187cc7f..0dc0ddbea9 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -3305,10 +3305,7 @@ bool Main::iteration() {
}
if (movie_writer) {
- RID main_vp_rid = RenderingServer::get_singleton()->viewport_find_from_screen_attachment(DisplayServer::MAIN_WINDOW_ID);
- RID main_vp_texture = RenderingServer::get_singleton()->viewport_get_texture(main_vp_rid);
- Ref<Image> vp_tex = RenderingServer::get_singleton()->texture_2d_get(main_vp_texture);
- movie_writer->add_frame(vp_tex);
+ movie_writer->add_frame();
}
if ((quit_after > 0) && (Engine::get_singleton()->_process_frames >= quit_after)) {