-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
extract_meshes_for_gpu_building
and extract_mesh_materials
…
…to run in parallel. (#16799) The only thing that was preventing `extract_meshes_for_gpu_building` and `extract_mesh_materials` from running in parallel was the `ResMut<RenderMeshMaterialIds>`. This lookup can be safely moved to the `collect_meshes_for_gpu_building` phase, which runs after the extraction phase. This results in a small win on `many_cubes`. `extract_mesh_materials` is currently nonretained, so it's still slow, but running it in parallel is an easy win. Before: ![Screenshot 2024-12-13 015318](https://github.com/user-attachments/assets/e5cfa4d6-3feb-40b7-8405-f727de2c2813) After: ![Screenshot 2024-12-13 015300](https://github.com/user-attachments/assets/7dc08135-aa1d-4e3a-a863-d2b7492f865f)
- Loading branch information
Showing
2 changed files
with
17 additions
and
25 deletions.
There are no files selected for viewing
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