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

Fix point lights not despawning #19

Merged
merged 3 commits into from
Jul 28, 2024
Merged

Fix point lights not despawning #19

merged 3 commits into from
Jul 28, 2024

Conversation

jgayfer
Copy link
Owner

@jgayfer jgayfer commented Jul 28, 2024

Summary

GpuArrayBuffer won't write to the GPU if we have no point lights (an
empty array).

We first tried writing a more custom integration with the GPU, but ended
up running into a very similar problem.

For now lets use GPUArrayBuffer and all it does for us, writing an "empty"
point light to ensure we'll always have a binding.

Fixes #18

jgayfer added 3 commits July 28, 2024 14:23
GpuArrayBuffer won't write to the GPU if we have no point lights (an
empty array).

We first tried writing a more custom integration with the GPU, but ended
up running into a very similar problem.

For now lets use GPUArrayBuffer and all it does for us, writing an "empty"
point light to ensure we'll always have a binding.
@jgayfer jgayfer changed the title Fight point lights not despawning Fix point lights not despawning Jul 28, 2024
@jgayfer
Copy link
Owner Author

jgayfer commented Jul 28, 2024

Will look into this further. Might be an issue with GpuArrayBuffer, but might be an issue with my understanding of Bevy's rendering.

@jgayfer jgayfer merged commit faa6a9a into main Jul 28, 2024
6 checks passed
@jgayfer jgayfer deleted the fix-no-despawn branch August 6, 2024 03:30
@jgayfer jgayfer mentioned this pull request Aug 18, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Light doesn't go away when its entity is despawned
1 participant