Skip to content

Conversation

@M2-TE
Copy link
Contributor

@M2-TE M2-TE commented Jan 16, 2026

I had previously merged them to be concise, but separating these has two distinct time advantages:

  1. We can skip running the generator in Debug mode, which is suprisingly slow to execute
  2. Module runners can skip the sample stage altogether, shaving at least 10 minutes off their total runtime

This pretty much covers all the ideas I had for reducing these runner times and will (hopefully) be the last PR about them for a while..

Copy link
Contributor

@asuessenbach asuessenbach left a comment

Choose a reason for hiding this comment

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

Just two questions:

-D CMAKE_CXX_STANDARD=${{matrix.env.cxx_max}} \
-D VULKAN_HPP_GENERATOR_BUILD=ON \
-D VULKAN_HPP_RUN_GENERATOR=$RUN_GENERATOR \
-D VULKAN_HPP_DISPATCH_LOADER_DYNAMIC=ON \
Copy link
Contributor

Choose a reason for hiding this comment

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

When you just build the generator and generate the headers, VULKAN_HPP_DISPATCH_LOADER_DYNAMIC should not be needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It may not be needed, but the Vulkan::Hpp that will always be created uses find_package(Vulkan) if we do not enable the dynamic dispatcher. This suppresses warnings (and potential issues) when it cannot be found (CI), so I left it there.

-D VULKAN_HPP_RUN_GENERATOR=OFF \
-D VULKAN_HPP_SAMPLES_BUILD=ON \
-D VULKAN_HPP_TESTS_BUILD=OFF \
-D VULKAN_HPP_TESTS_CTEST=ON \
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is VULKAN_HPP_TESTS_CTEST on here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It has no effect, but I can explicitly disable it for the sake of consistency

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