Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release notes for GPU frustum culling #1439

Merged
merged 3 commits into from
Jun 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
TODO
<!-- GPU Frustum Culling: https://github.com/bevyengine/bevy/pull/12889-->

Bevy's rendering stack is often CPU-bound: by shifting more work onto the GPU, we can better balance the load and render more shiny things faster.
Frustum culling is an optimization technique that automatically hides objects that are outside of a camera's view (its frustum).
In Bevy 0.14, users can choose to have this work performed on the GPU, depending on the performance characteristics of their project.

Two new components are available to control frustum culling: `GpuCulling` and `NoCpuCulling`. Attach the appropriate combination of these
components to a camera, and you're set.

```rust
alice-i-cecile marked this conversation as resolved.
Show resolved Hide resolved
commands.spawn((
Camera3dBundle::default(),
// Enable GPU frustum culling (does not automatically disable CPU frustum culling).
GpuCulling,
// Disable CPU frustum culling.
NoCpuCulling
));
```