Replace most uses of Map by HashMap
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
This commit is contained in:
parent
396def9b66
commit
746dddc067
587 changed files with 3707 additions and 3538 deletions
|
|
@ -71,14 +71,14 @@ private:
|
|||
|
||||
int total_subshapes = 0;
|
||||
|
||||
Map<uint32_t, ShapeData> shapes;
|
||||
RBMap<uint32_t, ShapeData> shapes;
|
||||
|
||||
bool only_update_transform_changes = false; // This is used for sync to physics.
|
||||
|
||||
bool capture_input_on_drag = false;
|
||||
bool ray_pickable = true;
|
||||
|
||||
Set<uint32_t> debug_shapes_to_update;
|
||||
RBSet<uint32_t> debug_shapes_to_update;
|
||||
int debug_shapes_count = 0;
|
||||
Transform3D debug_shape_old_transform;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue