Delay expensive operations to get_perf_report
The function update_perf_report() is expensive and is called every frame. Most of it is not necessary unless the user calls get_perf_report Affects #102173
This commit is contained in:
parent
134da37497
commit
21133425cc
2 changed files with 9 additions and 7 deletions
|
|
@ -203,7 +203,8 @@ private:
|
|||
bool split_swapchain_into_its_own_cmd_buffer = true;
|
||||
uint32_t gpu_copy_count = 0;
|
||||
uint32_t copy_bytes_count = 0;
|
||||
String perf_report_text;
|
||||
uint32_t prev_gpu_copy_count = 0;
|
||||
uint32_t prev_copy_bytes_count = 0;
|
||||
|
||||
RID_Owner<Buffer, true> uniform_buffer_owner;
|
||||
RID_Owner<Buffer, true> storage_buffer_owner;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue