diff --git a/include/config.h b/include/config.h index d962be29..0e2c915e 100644 --- a/include/config.h +++ b/include/config.h @@ -58,6 +58,8 @@ #define LONGER_POLES // Disable lives and hide the lives counter #define DISABLE_LIVES +// Disable AA (Recommended: it changes nothing on emulator, and it makes console run better) +#define DISABLE_AA // Uncomment this if you want global star IDs (useful for creating an open world hack ala MVC) //#define GLOBAL_STAR_IDS // Uncomment this if you want to skip the title screen (Super Mario 64 logo) diff --git a/src/game/rendering_graph_node.c b/src/game/rendering_graph_node.c index 074298f1..57bed2eb 100644 --- a/src/game/rendering_graph_node.c +++ b/src/game/rendering_graph_node.c @@ -78,6 +78,52 @@ struct RenderModeContainer { }; /* Rendermode settings for cycle 1 for all 8 layers. */ +#ifdef DISABLE_AA +struct RenderModeContainer renderModeTable_1Cycle[2] = { { { + G_RM_OPA_SURF, + G_RM_AA_OPA_SURF, + G_RM_AA_OPA_SURF, + G_RM_AA_OPA_SURF, + G_RM_AA_TEX_EDGE, + G_RM_AA_XLU_SURF, + G_RM_AA_XLU_SURF, + G_RM_AA_XLU_SURF, + } }, + { { + /* z-buffered */ + G_RM_ZB_OPA_SURF, + G_RM_ZB_OPA_SURF, + G_RM_ZB_OPA_DECAL, + G_RM_AA_ZB_OPA_INTER, + G_RM_AA_ZB_TEX_EDGE, + G_RM_ZB_XLU_SURF, + G_RM_ZB_XLU_DECAL, + G_RM_AA_ZB_XLU_INTER, + } } }; + +/* Rendermode settings for cycle 2 for all 8 layers. */ +struct RenderModeContainer renderModeTable_2Cycle[2] = { { { + G_RM_OPA_SURF2, + G_RM_AA_OPA_SURF2, + G_RM_AA_OPA_SURF2, + G_RM_AA_OPA_SURF2, + G_RM_AA_TEX_EDGE2, + G_RM_AA_XLU_SURF2, + G_RM_AA_XLU_SURF2, + G_RM_AA_XLU_SURF2, + } }, + { { + /* z-buffered */ + G_RM_ZB_OPA_SURF2, + G_RM_ZB_OPA_SURF2, + G_RM_ZB_OPA_DECAL2, + G_RM_AA_ZB_OPA_INTER2, + G_RM_AA_ZB_TEX_EDGE2, + G_RM_ZB_XLU_SURF2, + G_RM_ZB_XLU_DECAL2, + G_RM_AA_ZB_XLU_INTER2, + } } }; +#else struct RenderModeContainer renderModeTable_1Cycle[2] = { { { G_RM_OPA_SURF, G_RM_AA_OPA_SURF, @@ -122,6 +168,7 @@ struct RenderModeContainer renderModeTable_2Cycle[2] = { { { G_RM_AA_ZB_XLU_DECAL2, G_RM_AA_ZB_XLU_INTER2, } } }; +#endif struct GraphNodeRoot *gCurGraphNodeRoot = NULL; struct GraphNodeMasterList *gCurGraphNodeMasterList = NULL;