Skip to main content

Crate bevy_kill_my_cache

Crate bevy_kill_my_cache 

Source
Expand description

§Bevy Kill My Cache

crates.io docs.rs

Did you know that the Bevy scheduler gets faster the more archetypes you have? Did you know that you can exploit this to get up to 1000x more performance in a highly specialized benchmark? Do you want to absolutely destroy your cache to get some scheduler speedup in your game? Oh boy do I have what you need. bevy_kill_my_cache comes to the rescue! By using the power of science and technology, we create 1000 new components and insert them at random into your entities! Wow! Isn’t that amazing? All you have to do is .add_plugins(KillMyCachePlugin) and you unlock all the secret performance locked away in your App.

Please don’t use this for real

§Usage

Just add the plugin, that’s it:

use bevy::prelude::*;
use bevy_kill_my_cache::KillMyCachePlugin;

App::new()
  // rest of your setup code
  .add_plugins(KillMyCachePlugin);
  // that's it!

§Compatibility

bevybevy_kill_my_cache
0.180.4
0.170.3
0.160.2
0.150.1

Structs§

KillMyCachePlugin
A plugin that kills your cache, but makes the Bevy scheduler go brrr