You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Avoid manual memory management of certain arrays in Vulkan RD
This commit is contained in:
@@ -994,19 +994,19 @@ class RenderingDeviceVulkan : public RenderingDevice {
|
||||
|
||||
VkQueryPool timestamp_pool;
|
||||
|
||||
String *timestamp_names = nullptr;
|
||||
uint64_t *timestamp_cpu_values = nullptr;
|
||||
TightLocalVector<String> timestamp_names;
|
||||
TightLocalVector<uint64_t> timestamp_cpu_values;
|
||||
uint32_t timestamp_count = 0;
|
||||
String *timestamp_result_names = nullptr;
|
||||
uint64_t *timestamp_cpu_result_values = nullptr;
|
||||
uint64_t *timestamp_result_values = nullptr;
|
||||
TightLocalVector<String> timestamp_result_names;
|
||||
TightLocalVector<uint64_t> timestamp_cpu_result_values;
|
||||
TightLocalVector<uint64_t> timestamp_result_values;
|
||||
uint32_t timestamp_result_count = 0;
|
||||
uint64_t index = 0;
|
||||
};
|
||||
|
||||
uint32_t max_timestamp_query_elements = 0;
|
||||
|
||||
Frame *frames = nullptr; //frames available, for main device they are cycled (usually 3), for local devices only 1
|
||||
TightLocalVector<Frame> frames; //frames available, for main device they are cycled (usually 3), for local devices only 1
|
||||
int frame = 0; //current frame
|
||||
int frame_count = 0; //total amount of frames
|
||||
uint64_t frames_drawn = 0;
|
||||
|
||||
Reference in New Issue
Block a user