Skip to content

Commit 8e08e26

Browse files
committed
Update commented vsync code in example to use present_mode (#4926)
# Objective - To fix the broken commented code in `examples/shader/compute_shader_game_of_life.rs` for disabling frame throttling ## Solution - Change the commented code from using the old `WindowDescriptor::vsync` to the new `WindowDescriptor::present_mode` ### Note I chose to use the fully qualified scope `bevy::window::PresentWindow::Immediate` rather than explicitly including `PresentWindow` to avoid an unused import when the code is commented.
1 parent 3a9383f commit 8e08e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/shader/compute_shader_game_of_life.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn main() {
2525
.insert_resource(ClearColor(Color::BLACK))
2626
.insert_resource(WindowDescriptor {
2727
// uncomment for unthrottled FPS
28-
// vsync: false,
28+
// present_mode: bevy::window::PresentMode::Immediate,
2929
..default()
3030
})
3131
.add_plugins(DefaultPlugins)

0 commit comments

Comments
 (0)