mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
Merge pull request #10783 from liamwhite/memory
video_core: preallocate fewer IR blocks
This commit is contained in:
commit
ec423c6919
@ -16,9 +16,9 @@ struct ShaderPools {
|
|||||||
inst.ReleaseContents();
|
inst.ReleaseContents();
|
||||||
}
|
}
|
||||||
|
|
||||||
Shader::ObjectPool<Shader::IR::Inst> inst;
|
Shader::ObjectPool<Shader::IR::Inst> inst{8192};
|
||||||
Shader::ObjectPool<Shader::IR::Block> block;
|
Shader::ObjectPool<Shader::IR::Block> block{32};
|
||||||
Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block;
|
Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block{32};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Context {
|
struct Context {
|
||||||
|
@ -92,9 +92,9 @@ struct ShaderPools {
|
|||||||
inst.ReleaseContents();
|
inst.ReleaseContents();
|
||||||
}
|
}
|
||||||
|
|
||||||
Shader::ObjectPool<Shader::IR::Inst> inst;
|
Shader::ObjectPool<Shader::IR::Inst> inst{8192};
|
||||||
Shader::ObjectPool<Shader::IR::Block> block;
|
Shader::ObjectPool<Shader::IR::Block> block{32};
|
||||||
Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block;
|
Shader::ObjectPool<Shader::Maxwell::Flow::Block> flow_block{32};
|
||||||
};
|
};
|
||||||
|
|
||||||
class PipelineCache : public VideoCommon::ShaderCache {
|
class PipelineCache : public VideoCommon::ShaderCache {
|
||||||
|
Loading…
Reference in New Issue
Block a user