bevyengine / bevyengine/bevy

`AtmosphereEnvironmentMapLight` and `GeneratedEnvironmentMapLight` are extremely slow

Open
#24,517 3 comments 2 reactions 0 assignees View on GitHub
A-Rendering C-Performance S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

`AtmosphereEnvironmentMapLight` and `GeneratedEnvironmentMapLight` are extremely slow even on desktop:
```
SystemInfo { os: "Linux (Arch Linux)", kernel: "7.0.10-arch1-1", cpu: "AMD Ryzen 7 4800U with Radeon Graphics", core_count: "8", memory: "15.0 GiB" }
```

```
cargo r -p bevy_city -r -- --size 5
```
Without `AtmosphereEnvironmentMapLight` 58 fps:

Image

With `AtmosphereEnvironmentMapLight` 13 fps:

Image

```
cargo r --example reflection_probes -r
```
With `EnvironmentMapLight` 59 fps:

Image

With `GeneratedEnvironmentMapLight` 17 fps:

Image

Contributor guide

Open the contributing guide

Research direction

Start by running `cargo r -p bevy_city -r -- --size 5` and `cargo r --example reflection_probes -r`, comparing the reported frame rates with and without `AtmosphereEnvironmentMapLight` and `GeneratedEnvironmentMapLight`. Trace the environment-map lighting entry points and measure where the frame time is spent. Done means identifying and addressing the slowdown while preserving the lighting behavior and improving performance toward the reported `EnvironmentMapLight` results.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.