Implement parallel host shader cache compilation.
This commit is contained in:
parent
bb43219f1d
commit
ddf4b92a9c
7 changed files with 452 additions and 232 deletions
|
@ -130,6 +130,11 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
|
||||
PrintGpuInformation();
|
||||
|
||||
if (HwCapabilities.SupportsParallelShaderCompile)
|
||||
{
|
||||
GL.Arb.MaxShaderCompilerThreads(Math.Min(Environment.ProcessorCount, 8));
|
||||
}
|
||||
|
||||
_counters.Initialize();
|
||||
}
|
||||
|
||||
|
@ -177,16 +182,7 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
|
||||
public IProgram LoadProgramBinary(byte[] programBinary)
|
||||
{
|
||||
Program program = new Program(programBinary);
|
||||
|
||||
if (program.IsLinked)
|
||||
{
|
||||
return program;
|
||||
}
|
||||
|
||||
program.Dispose();
|
||||
|
||||
return null;
|
||||
return new Program(programBinary);
|
||||
}
|
||||
|
||||
public void CreateSync(ulong id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue