Merge pull request #310 from TwilitRealm/26-04-10-render-opts-2

Rendering optimizations
This commit is contained in:
TakaRikka
2026-04-10 15:21:44 -07:00
committed by GitHub
2 changed files with 63 additions and 4 deletions
+11
View File
@@ -217,4 +217,15 @@ using std::isnan;
#define CRASH(msg, ...) OSPanic(__FILE__, __LINE__, "%s", msg, ##__VA_ARGS__)
// Some basic macros that are more convenient than putting down #if blocks for one-line changes.
#if TARGET_PC
#define IF_DUSK(statement) statement
#define IF_NOT_DUSK(statement)
#define DUSK_IF_ELSE(dusk, orig) dusk
#else
#define IF_DUSK(statement)
#define IF_NOT_DUSK(statement) statement
#define DUSK_IF_ELSE(dusk, orig) orig
#endif
#endif