summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-06-17 01:53:25 +0200
committerGitHub <noreply@github.com>2023-06-17 01:53:25 +0200
commitec423c69197acfe1f46b161163a99d28e89abad7 (patch)
tree605db37c7f4e18e99e90617a7c529c899e82fd70 /src
parentMerge pull request #10808 from t895/settings-stuffs (diff)
parentvideo_core: preallocate fewer IR blocks (diff)
downloadyuzu-ec423c69197acfe1f46b161163a99d28e89abad7.tar
yuzu-ec423c69197acfe1f46b161163a99d28e89abad7.tar.gz
yuzu-ec423c69197acfe1f46b161163a99d28e89abad7.tar.bz2
yuzu-ec423c69197acfe1f46b161163a99d28e89abad7.tar.lz
yuzu-ec423c69197acfe1f46b161163a99d28e89abad7.tar.xz
yuzu-ec423c69197acfe1f46b161163a99d28e89abad7.tar.zst
yuzu-ec423c69197acfe1f46b161163a99d28e89abad7.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_context.h6
-rw-r--r--src/video_core/renderer_vulkan/vk_pipeline_cache.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_context.h b/src/video_core/renderer_opengl/gl_shader_context.h
index 207a75d42..d12cd06fa 100644
--- a/src/video_core/renderer_opengl/gl_shader_context.h
+++ b/src/video_core/renderer_opengl/gl_shader_context.h
@@ -16,9 +16,9 @@ struct ShaderPools {
inst.ReleaseContents();
}
- Shader::ObjectPool<Shader::IR::Inst> inst;
- Shader::ObjectPool<Shader::IR::Block> block;
- Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block;
+ Shader::ObjectPool<Shader::IR::Inst> inst{8192};
+ Shader::ObjectPool<Shader::IR::Block> block{32};
+ Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block{32};
};
struct Context {
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.h b/src/video_core/renderer_vulkan/vk_pipeline_cache.h
index 15aa7e224..e323ea0fd 100644
--- a/src/video_core/renderer_vulkan/vk_pipeline_cache.h
+++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.h
@@ -92,9 +92,9 @@ struct ShaderPools {
inst.ReleaseContents();
}
- Shader::ObjectPool<Shader::IR::Inst> inst;
- Shader::ObjectPool<Shader::IR::Block> block;
- Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block;
+ Shader::ObjectPool<Shader::IR::Inst> inst{8192};
+ Shader::ObjectPool<Shader::IR::Block> block{32};
+ Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block{32};
};
class PipelineCache : public VideoCommon::ShaderCache {