mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
7115b1c899
Performance: - don't do anything when it's inactive - only process chunks within minimap-VD - remove chunks outside of VD - higher thread pool fraction specified Aesthetics: - different water color - wood and leaves no longer count as ceilings
22 lines
588 B
Rust
22 lines
588 B
Rust
pub mod comp;
|
|
pub mod sys;
|
|
|
|
use crate::audio::sfx::SfxEventItem;
|
|
use common::{event::EventBus, 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);
|
|
}
|
|
|
|
// Voxygen event buses
|
|
world.insert(EventBus::<SfxEventItem>::default());
|
|
}
|