diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2020-12-24 10:07:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 10:07:54 +0100 |
commit | 6063af6788feb31665b7be2cc629fd7a0f7673e2 (patch) | |
tree | a3e2c9ed37a1fefd40b407848d946292fc7aff76 /servers/rendering_server.cpp | |
parent | 3fdf4bfe71311000bf706c16d79b475308a200ac (diff) | |
parent | 7219f37cb5738190b2b11c27c4e6a9a0ce5ecd30 (diff) |
Merge pull request #44641 from reduz/get-frame-setup-time
Add API to get frame setup time on CPU
Diffstat (limited to 'servers/rendering_server.cpp')
-rw-r--r-- | servers/rendering_server.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp index dedca4b09f..e9bfb7ecf5 100644 --- a/servers/rendering_server.cpp +++ b/servers/rendering_server.cpp @@ -1817,6 +1817,9 @@ void RenderingServer::_bind_methods() { ClassDB::bind_method(D_METHOD("is_render_loop_enabled"), &RenderingServer::is_render_loop_enabled); ClassDB::bind_method(D_METHOD("set_render_loop_enabled", "enabled"), &RenderingServer::set_render_loop_enabled); + + ClassDB::bind_method(D_METHOD("get_frame_setup_time_cpu"), &RenderingServer::get_frame_setup_time_cpu); + ADD_PROPERTY(PropertyInfo(Variant::BOOL, "render_loop_enabled"), "set_render_loop_enabled", "is_render_loop_enabled"); BIND_CONSTANT(NO_INDEX_ARRAY); |