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:
parent
7dfba3cda9
commit
bc2e8d99e5
62 changed files with 148 additions and 147 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue