mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-21 10:55:03 +00:00
hot-fix: Tracy operation restored; memory leak fix as a bonus
This commit is contained in:
parent
3001b007f6
commit
e7c4ffe032
5 changed files with 16 additions and 3 deletions
|
@ -17,6 +17,8 @@ static inline bool IsProfilerConnected() {
|
|||
return tracy::GetProfiler().IsConnected();
|
||||
}
|
||||
|
||||
#define TRACY_GPU_ENABLED 0
|
||||
|
||||
#define CUSTOM_LOCK(type, varname) \
|
||||
tracy::LockableCtx varname { \
|
||||
[]() -> const tracy::SourceLocationData* { \
|
||||
|
@ -58,5 +60,10 @@ enum MarkersPalette : int {
|
|||
|
||||
#define FRAME_END FrameMark
|
||||
|
||||
#ifdef TRACY_FIBERS
|
||||
#define FIBER_ENTER(name) TracyFiberEnter(name)
|
||||
#define FIBER_EXIT TracyFiberLeave
|
||||
#else
|
||||
#define FIBER_ENTER(name)
|
||||
#define FIBER_EXIT
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue