1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-01 16:38:31 +00:00

PoolVector is gone, replaced by Vector

Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are
sugar for `Vector<Type>`.
This commit is contained in:
Juan Linietsky
2020-02-17 18:06:54 -03:00
committed by Juan Linietsky
parent fb8c93c10b
commit 3205a92ad8
406 changed files with 5314 additions and 8271 deletions

View File

@@ -996,13 +996,13 @@ void ScriptDebuggerRemote::idle_poll() {
if (visual_profiling) {
Vector<VS::FrameProfileArea> profile_areas = VS::get_singleton()->get_frame_profile();
if (profile_areas.size()) {
PoolVector<String> area_names;
PoolVector<real_t> area_times;
Vector<String> area_names;
Vector<real_t> area_times;
area_names.resize(profile_areas.size());
area_times.resize(profile_areas.size() * 2);
{
PoolVector<String>::Write area_namesw = area_names.write();
PoolVector<real_t>::Write area_timesw = area_times.write();
String *area_namesw = area_names.ptrw();
real_t *area_timesw = area_times.ptrw();
for (int i = 0; i < profile_areas.size(); i++) {
area_namesw[i] = profile_areas[i].name;