Allow verbose bit mask because this is in a performance-critical path, tick(), and it is faster on Intel according to https://rust-lang.github.io/rust-clippy/master/index.html#verbose_bit_mask
This commit is contained in:
parent
9cfb686528
commit
337ee74b22
|
@ -204,6 +204,7 @@ impl World {
|
|||
self.block_entity_actions.push_back(action);
|
||||
}
|
||||
|
||||
#[allow(clippy::verbose_bit_mask)] // "llvm generates better code" for updates_performed & 0xFFF "on x86"
|
||||
pub fn tick(&mut self, m: &mut ecs::Manager) {
|
||||
use std::time::Instant;
|
||||
let start = Instant::now();
|
||||
|
|
Loading…
Reference in New Issue