You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Made Vector::ptrw explicit for writing, compiler was sometimes using the wrong function,
leading to unnecesary copy on writes and reduced performance.
This commit is contained in:
@@ -212,7 +212,7 @@ void ScriptDebuggerLocal::idle_poll() {
|
||||
}
|
||||
|
||||
SortArray<ScriptLanguage::ProfilingInfo, _ScriptDebuggerLocalProfileInfoSort> sort;
|
||||
sort.sort(pinfo.ptr(), ofs);
|
||||
sort.sort(pinfo.ptrw(), ofs);
|
||||
|
||||
//falta el frame time
|
||||
|
||||
@@ -264,7 +264,7 @@ void ScriptDebuggerLocal::profiling_end() {
|
||||
}
|
||||
|
||||
SortArray<ScriptLanguage::ProfilingInfo, _ScriptDebuggerLocalProfileInfoSort> sort;
|
||||
sort.sort(pinfo.ptr(), ofs);
|
||||
sort.sort(pinfo.ptrw(), ofs);
|
||||
|
||||
uint64_t total_us = 0;
|
||||
for (int i = 0; i < ofs; i++) {
|
||||
|
||||
Reference in New Issue
Block a user