Refactor quest perf fix (#111)

* cargo fmt and removed the unessecary examples.

* fixed android logging errors and moved waitframe to fix perf on quest and fixed android example perf by turning off msaa
This commit is contained in:
Malek
2024-05-29 16:57:08 -07:00
committed by GitHub
parent 35725eaa8b
commit 0f9ccf7f04
3 changed files with 23 additions and 11 deletions

View File

@@ -21,7 +21,12 @@ fn main() {
synchronous_pipeline_compilation: default(),
}))
.add_plugins(bevy_xr_utils::hand_gizmos::HandGizmosPlugin)
.insert_resource(Msaa::Off)
.add_systems(Startup, setup)
.insert_resource(AmbientLight {
color: Default::default(),
brightness: 500.0,
})
.insert_resource(ClearColor(Color::NONE))
.run();
}
@@ -46,13 +51,4 @@ fn setup(
transform: Transform::from_xyz(0.0, 0.5, 0.0),
..default()
});
// light
commands.spawn(PointLightBundle {
point_light: PointLight {
shadows_enabled: true,
..default()
},
transform: Transform::from_xyz(4.0, 8.0, 4.0),
..default()
});
}