This method it calls VkPipeline Anvil::BasePipelineManager::get_pipeline(PipelineID in_pipeline_id) which after a search at a map with all PipelineIDs returns a VkPipeline
Searching at a map is a O(logn) operation and if someone wants to re-record commands every frame (in my case for CPU culling) this might become a bottleneck if many Pipelines have been created.
So maybe giving the option (without "hacking" the library) to bind the pipeline by avoiding using PipelineID might be a good addition.
Please feel free to express your opinion. Thank you in advance and have a nice day.
Under
CommandBufferBase
class the bellow method binds a pipeline for both Primary and Secondary Command BufferThis method it calls
VkPipeline Anvil::BasePipelineManager::get_pipeline(PipelineID in_pipeline_id)
which after a search at a map with all PipelineIDs returns aVkPipeline
Searching at a map is a O(logn) operation and if someone wants to re-record commands every frame (in my case for CPU culling) this might become a bottleneck if many Pipelines have been created.
So maybe giving the option (without "hacking" the library) to bind the pipeline by avoiding using PipelineID might be a good addition.
Please feel free to express your opinion. Thank you in advance and have a nice day.