-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gpu: More efficient light texture updates.
Instead of issuing one `Queue::write_texture()` per cube, batch the data into a single `Buffer` and copy from it. This is significantly faster, at least on the CPU side; the time spent on heavy updates has been cut from ~5 ms to ~1 ms. Future work: use `StagingBelt` instead of using `write_buffer()`. To do this optimally, `StagingBelt` will need to be modified to allow us accessing its buffers to issue a `copy_buffer_to_texture` instead of it issuing a `copy_buffer_to_buffer`.
- Loading branch information
Showing
3 changed files
with
85 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters