mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-24 02:07:11 +02:00
2 unmerged PRs from original Ryujinx:
Implement shader compile counter (currently not translated, will change, need to pull changes.) Remove event logic in favor of a single init function. Thanks @MutantAura
This commit is contained in:
parent
7618ef134d
commit
a01a06cd3f
10 changed files with 101 additions and 36 deletions
|
@ -13,6 +13,8 @@ namespace Ryujinx.Graphics.GAL
|
|||
IPipeline Pipeline { get; }
|
||||
|
||||
IWindow Window { get; }
|
||||
|
||||
uint ProgramCount { get; }
|
||||
|
||||
void BackgroundContextAction(Action action, bool alwaysBackground = false);
|
||||
|
||||
|
|
|
@ -55,6 +55,8 @@ namespace Ryujinx.Graphics.GAL.Multithreading
|
|||
private int _refProducerPtr;
|
||||
private int _refConsumerPtr;
|
||||
|
||||
public uint ProgramCount { get; set; } = 0;
|
||||
|
||||
private Action _interruptAction;
|
||||
private readonly object _interruptLock = new();
|
||||
|
||||
|
@ -307,6 +309,8 @@ namespace Ryujinx.Graphics.GAL.Multithreading
|
|||
|
||||
Programs.Add(request);
|
||||
|
||||
ProgramCount++;
|
||||
|
||||
New<CreateProgramCommand>().Set(Ref((IProgramRequest)request));
|
||||
QueueCommand();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue