Skip to content

Instantly share code, notes, and snippets.

View aevyrie's full-sized avatar
💭
I may be slow to respond.

Aevyrie aevyrie

💭
I may be slow to respond.
  • Foresight Spatial Labs
  • Oregon, USA
  • 15:08 (UTC -08:00)
View GitHub Profile
@aevyrie
aevyrie / ui.rs
Created April 24, 2022 04:20
Bevy input latency test
use bevy::{prelude::*, window::PresentMode, winit::WinitSettings};
/// This example illustrates the various features of Bevy UI.
fn main() {
App::new()
.add_plugins(DefaultPlugins)
// Only run the app when there is user input. This will significantly reduce CPU/GPU use.
.insert_resource(WinitSettings::desktop_app())
.insert_resource(WindowDescriptor {
present_mode: PresentMode::Immediate,