1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Add API to get frame setup time on CPU

Needed for benchmarks
This commit is contained in:
reduz
2020-12-24 00:13:52 -03:00
parent 169159c8aa
commit 7219f37cb5
5 changed files with 22 additions and 0 deletions

View File

@@ -72,6 +72,8 @@ class RenderingServerDefault : public RenderingServer {
uint64_t frame_profile_frame;
Vector<FrameProfileArea> frame_profile;
float frame_setup_time = 0;
public:
//if editor is redrawing when it shouldn't, enable this and put a breakpoint in _changes_changed()
//#define DEBUG_CHANGES
@@ -845,6 +847,8 @@ public:
/* TESTING */
virtual float get_frame_setup_time_cpu() const;
virtual void set_boot_image(const Ref<Image> &p_image, const Color &p_color, bool p_scale, bool p_use_filter = true);
virtual void set_default_clear_color(const Color &p_color);