summaryrefslogtreecommitdiff
path: root/soh/include/macros.h
diff options
context:
space:
mode:
authorEmill <emil.lenngren@gmail.com>2022-05-14 00:43:55 +0200
committerGitHub <noreply@github.com>2022-05-13 18:43:55 -0400
commit45e5e5ca720100e22a1e32dba5c84c3f11cbadcd (patch)
treecf7555103db37224cbaba654b2ca4f030cd51c44 /soh/include/macros.h
parentbcd57f45b2cf5e553bd5d8dbc0848e26304d9a0b (diff)
Experimental interpolation (#309)
* Experimental 60 fps * Fix compile error * Fix compile error * Fix compile error
Diffstat (limited to 'soh/include/macros.h')
-rw-r--r--soh/include/macros.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/soh/include/macros.h b/soh/include/macros.h
index a621a65f8..7392274d9 100644
--- a/soh/include/macros.h
+++ b/soh/include/macros.h
@@ -138,6 +138,8 @@ extern GraphicsContext* __gfxCtx;
#ifndef NDEBUG
#define OPEN_DISPS(gfxCtx, file, line) \
{ \
+ void FrameInterpolation_RecordOpenChild(const void* a, int b); \
+ FrameInterpolation_RecordOpenChild(file, line); \
GraphicsContext* __gfxCtx; \
Gfx* dispRefs[4]; \
__gfxCtx = gfxCtx; \
@@ -146,6 +148,8 @@ extern GraphicsContext* __gfxCtx;
#else
#define OPEN_DISPS(gfxCtx, file, line) \
{ \
+ void FrameInterpolation_RecordOpenChild(const void* a, int b); \
+ FrameInterpolation_RecordOpenChild(file, line); \
GraphicsContext* __gfxCtx; \
__gfxCtx = gfxCtx; \
(void)__gfxCtx;
@@ -153,11 +157,15 @@ extern GraphicsContext* __gfxCtx;
#ifndef NDEBUG
#define CLOSE_DISPS(gfxCtx, file, line) \
+ {void FrameInterpolation_RecordCloseChild(void); \
+ FrameInterpolation_RecordCloseChild();} \
Graph_CloseDisps(dispRefs, gfxCtx, file, line); \
} \
(void)0
#else
#define CLOSE_DISPS(gfxCtx, file, line) \
+ {void FrameInterpolation_RecordCloseChild(void); \
+ FrameInterpolation_RecordCloseChild();} \
(void)0; \
} \
(void)0