[Editor,Servers]: Minor optimizations

This commit is contained in:
Stuart Carnie 2024-09-12 06:19:24 +10:00
parent 14a7e0abb3
commit 5cfacc8767
No known key found for this signature in database
GPG key ID: 848D9C9718D78B4F
5 changed files with 18 additions and 19 deletions

View file

@ -150,12 +150,10 @@ void RenderingServerDefault::_draw(bool p_swap_buffers, double frame_step) {
double time = frame_profile[i + 1].gpu_msec - frame_profile[i].gpu_msec;
if (name[0] != '<' && name[0] != '>') {
if (print_gpu_profile_task_time.has(name)) {
print_gpu_profile_task_time[name] += time;
} else {
print_gpu_profile_task_time[name] = time;
}
if (print_gpu_profile_task_time.has(name)) {
print_gpu_profile_task_time[name] += time;
} else {
print_gpu_profile_task_time[name] = time;
}
}