diff options
| author | 2020-12-30 01:34:50 -0800 | |
|---|---|---|
| committer | 2021-01-11 14:23:16 -0800 | |
| commit | 82f6037ec2c56788f7a387a45cccc8bda995619a (patch) | |
| tree | f9f3167bf4020dc849ea4ebdbbfa2f0e12cff113 /src/core/hle | |
| parent | core: hle: Integrate new KConditionVariable and KAddressArbiter implementations. (diff) | |
| download | yuzu-82f6037ec2c56788f7a387a45cccc8bda995619a.tar.gz yuzu-82f6037ec2c56788f7a387a45cccc8bda995619a.tar.xz yuzu-82f6037ec2c56788f7a387a45cccc8bda995619a.zip | |
core: hle: Add missing calls to MicroProfileOnThreadExit.
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp index 4b3581949..ceaa93d28 100644 --- a/src/core/hle/service/nvflinger/nvflinger.cpp +++ b/src/core/hle/service/nvflinger/nvflinger.cpp | |||
| @@ -38,6 +38,10 @@ void NVFlinger::SplitVSync() { | |||
| 38 | system.RegisterHostThread(); | 38 | system.RegisterHostThread(); |
| 39 | std::string name = "yuzu:VSyncThread"; | 39 | std::string name = "yuzu:VSyncThread"; |
| 40 | MicroProfileOnThreadCreate(name.c_str()); | 40 | MicroProfileOnThreadCreate(name.c_str()); |
| 41 | |||
| 42 | // Cleanup | ||
| 43 | SCOPE_EXIT({ MicroProfileOnThreadExit(); }); | ||
| 44 | |||
| 41 | Common::SetCurrentThreadName(name.c_str()); | 45 | Common::SetCurrentThreadName(name.c_str()); |
| 42 | Common::SetCurrentThreadPriority(Common::ThreadPriority::High); | 46 | Common::SetCurrentThreadPriority(Common::ThreadPriority::High); |
| 43 | s64 delay = 0; | 47 | s64 delay = 0; |