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

Make MAX_DIRECTIONAL_LIGHTS a runtime value #8992

Open
cart opened this issue Jun 29, 2023 · 0 comments
Open

Make MAX_DIRECTIONAL_LIGHTS a runtime value #8992

cart opened this issue Jun 29, 2023 · 0 comments
Labels
A-Rendering Drawing game state to the screen C-Usability A targeted quality-of-life change that makes Bevy easier to use

Comments

@cart
Copy link
Member

cart commented Jun 29, 2023

What problem does this solve or what need does it fill?

Currently MAX_DIRECTIONAL_LIGHTS is const, which prevents us from setting it to platform-specific (detected at runtime) values. For example, we need to set it to 1 for Adreno GPUs on WebGL. Currently, we are hard coding the value to 1 on WebGL for all GPUs, which is unnecessary.

What solution would you like?

Make it a dynamic value set and read at runtime.

See #8505 for more information.

@cart cart added C-Feature A new feature, making something new possible A-Rendering Drawing game state to the screen labels Jun 29, 2023
@alice-i-cecile alice-i-cecile added C-Usability A targeted quality-of-life change that makes Bevy easier to use and removed C-Feature A new feature, making something new possible labels Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Usability A targeted quality-of-life change that makes Bevy easier to use
Projects
None yet
Development

No branches or pull requests

2 participants