Trouv / bevy_ecs_ldtk

ECS-friendly ldtk plugin for bevy, leveraging bevy_ecs_tilemap
Other
664 stars 75 forks source link

example/improve-spawn_wall_collision #147

Closed janos-r closed 1 year ago

janos-r commented 1 year ago

I thought that this part of the collision builder was unnecessarily complicated and I didn't like that it is creating new HashMaps on every row. I tried to measure the the difference with std::time::Instant, but turns out the difference is in microseconds, not much improvement in time. But I still decided to submit this PR because I think it is a slight improvement. What do you think?