mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-09 17:14:47 -06:00
maximize concurrent shader compilation when loading shader cache
This commit is contained in:
parent
a72136419c
commit
a81ee7934e
@ -88,16 +88,18 @@ private:
|
|||||||
// TODO: find out if it would be possible to cache compiled Metal shaders
|
// TODO: find out if it would be possible to cache compiled Metal shaders
|
||||||
void RendererShaderMtl::ShaderCacheLoading_begin(uint64 cacheTitleId)
|
void RendererShaderMtl::ShaderCacheLoading_begin(uint64 cacheTitleId)
|
||||||
{
|
{
|
||||||
s_isLoadingShadersMtl = true;
|
// Maximize shader compilation speed
|
||||||
|
static_cast<MetalRenderer*>(g_renderer.get())->GetDevice()->setShouldMaximizeConcurrentCompilation(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RendererShaderMtl::ShaderCacheLoading_end()
|
void RendererShaderMtl::ShaderCacheLoading_end()
|
||||||
{
|
{
|
||||||
s_isLoadingShadersMtl = false;
|
static_cast<MetalRenderer*>(g_renderer.get())->GetDevice()->setShouldMaximizeConcurrentCompilation(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RendererShaderMtl::ShaderCacheLoading_Close()
|
void RendererShaderMtl::ShaderCacheLoading_Close()
|
||||||
{
|
{
|
||||||
|
// Do nothing
|
||||||
}
|
}
|
||||||
|
|
||||||
void RendererShaderMtl::Initialize()
|
void RendererShaderMtl::Initialize()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user