update to upstream

This commit is contained in:
Robin Appelman 2022-04-21 22:59:39 +02:00
commit 73a6e326ce
3 changed files with 5 additions and 3 deletions

2
.gitignore vendored
View file

@ -6,3 +6,5 @@ pkg/
wasm-pack.log wasm-pack.log
out.dem out.dem
test_data/* test_data/*
flamegraph.svg
perf.data*

View file

@ -41,6 +41,7 @@ pretty_assertions = "1.2.1"
md5 = "0.7.0" md5 = "0.7.0"
[profile.release] [profile.release]
lto = true
[profile.dev.package."*"] [profile.dev.package."*"]
opt-level = 3 opt-level = 3

View file

@ -78,7 +78,6 @@ impl ActiveEntities {
state.instance_baselines[0] state.instance_baselines[0]
.keys() .keys()
.chain(state.instance_baselines[1].keys()) .chain(state.instance_baselines[1].keys())
.copied()
.collect() .collect()
} }
@ -113,7 +112,7 @@ impl ActiveEntities {
), ),
]; ];
for entity in self.entities.values_mut() { for entity in self.entities.values_mut() {
if state.instance_baselines[0].contains_key(&entity.entity_index) { if state.instance_baselines[0].contains(entity.entity_index) {
entity.update_type = UpdateType::Preserve; entity.update_type = UpdateType::Preserve;
} else { } else {
entity.update_type = UpdateType::Enter; entity.update_type = UpdateType::Enter;