1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub mod comp;
pub mod sys;

use common::slowjob::SlowJobPool;
use specs::{World, WorldExt};

pub fn init(world: &mut World) {
    world.register::<comp::HpFloaterList>();
    world.register::<comp::Interpolated>();

    {
        let pool = world.read_resource::<SlowJobPool>();
        pool.configure("IMAGE_PROCESSING", |n| n / 2);
        pool.configure("FIGURE_MESHING", |n| n / 2);
        pool.configure("TERRAIN_MESHING", |n| n / 2);
    }
}