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
|
|
@ -221,7 +221,7 @@ void EditorProfiler::_update_plot() {
|
|||
Vector<int> columnv;
|
||||
columnv.resize(h * 4);
|
||||
|
||||
int *column = columnv.ptr();
|
||||
int *column = columnv.ptrw();
|
||||
|
||||
Map<StringName, int> plot_prev;
|
||||
//Map<StringName,int> plot_max;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue