summaryrefslogtreecommitdiff
path: root/servers/rendering/rendering_server_wrap_mt.h
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2020-12-24 00:13:52 -0300
committerreduz <reduzio@gmail.com>2020-12-24 00:13:52 -0300
commit7219f37cb5738190b2b11c27c4e6a9a0ce5ecd30 (patch)
tree1267e7db2c8cae27713e5cdf4b43f75415c341f7 /servers/rendering/rendering_server_wrap_mt.h
parent169159c8aac5807725594145bf029c0ff7ac8ef1 (diff)
Add API to get frame setup time on CPU
Needed for benchmarks
Diffstat (limited to 'servers/rendering/rendering_server_wrap_mt.h')
-rw-r--r--servers/rendering/rendering_server_wrap_mt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/rendering/rendering_server_wrap_mt.h b/servers/rendering/rendering_server_wrap_mt.h
index ec71178dae..1e6c3b8f71 100644
--- a/servers/rendering/rendering_server_wrap_mt.h
+++ b/servers/rendering/rendering_server_wrap_mt.h
@@ -776,6 +776,10 @@ public:
return rendering_server->get_frame_profile();
}
+ virtual float get_frame_setup_time_cpu() const {
+ return rendering_server->get_frame_setup_time_cpu();
+ }
+
virtual void sdfgi_set_debug_probe_select(const Vector3 &p_position, const Vector3 &p_dir) {
rendering_server->sdfgi_set_debug_probe_select(p_position, p_dir);
}