You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Shows proper scene render time in editor info
Also fixed GPU profiler, which was not working on nvidia hardware.
This commit is contained in:
@@ -202,7 +202,7 @@ class Node3DEditorViewport : public Control {
|
||||
VIEW_AUDIO_DOPPLER,
|
||||
VIEW_GIZMOS,
|
||||
VIEW_INFORMATION,
|
||||
VIEW_FPS,
|
||||
VIEW_FRAME_TIME,
|
||||
VIEW_DISPLAY_NORMAL,
|
||||
VIEW_DISPLAY_WIREFRAME,
|
||||
VIEW_DISPLAY_OVERDRAW,
|
||||
@@ -229,7 +229,9 @@ public:
|
||||
enum {
|
||||
GIZMO_BASE_LAYER = 27,
|
||||
GIZMO_EDIT_LAYER = 26,
|
||||
GIZMO_GRID_LAYER = 25
|
||||
GIZMO_GRID_LAYER = 25,
|
||||
|
||||
FRAME_TIME_HISTORY = 20,
|
||||
};
|
||||
|
||||
enum NavigationScheme {
|
||||
@@ -239,6 +241,11 @@ public:
|
||||
};
|
||||
|
||||
private:
|
||||
float cpu_time_history[FRAME_TIME_HISTORY];
|
||||
int cpu_time_history_index;
|
||||
float gpu_time_history[FRAME_TIME_HISTORY];
|
||||
int gpu_time_history_index;
|
||||
|
||||
int index;
|
||||
String name;
|
||||
void _menu_option(int p_option);
|
||||
|
||||
Reference in New Issue
Block a user