Skip to content

Conversation

@Firestar99
Copy link
Member

@Firestar99 Firestar99 commented Mar 30, 2025

If you have two shader crates, one has to wait for the other to finish compiling before it can compile. That's a good thing, as you don't have to recompile any dependencies twice.

But if you have two shader crates with differing capabilities or features, they are forced to do a clean rebuild every time, adding 30s each build, even if nothing changed. Explicitly specifying a target dir enables me to specify a separate build dir for each shader crate and work around this issue.

I do think a better policy wrt. capabilities and features will be needed in the future, but this will do for now.

Copy link
Collaborator

@LegNeato LegNeato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could have used this for my difftest PR as I just set the arg directly 🤔

@Firestar99 Firestar99 added this pull request to the merge queue Mar 30, 2025
Merged via the queue into main with commit a6ccd77 Mar 30, 2025
7 checks passed
@Firestar99 Firestar99 deleted the explicit_target_dir branch March 30, 2025 15:18
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.

2 participants