mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-03 16:23:10 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user