F3DLX2.Rej integration
The master displaylist has been split into two, one for things to render in F3DZEX, and one that renders in F3DLX2.Rej, with the aim to save performance when rendering smaller things.
This commit is contained in:
1 parent
6e07c3c724
commit
9d1329f245
12 files changed
+118
-57
No files matched your search
@@ -907,7 +907,7 @@ static BhvCommandProc BehaviorCmdTable[] = {
|
||||
void cur_obj_update(void) {
|
||||
UNUSED u32 unused;
|
||||
|
||||
s16 objFlags = gCurrentObject->oFlags;
|
||||
u32 objFlags = gCurrentObject->oFlags;
|
||||
f32 distanceFromMario;
|
||||
BhvCommandProc bhvCmdProc;
|
||||
s32 bhvProcResult;
|
||||
@@ -952,9 +952,6 @@ void cur_obj_update(void) {
|
||||
gCurrentObject->oPrevAction = gCurrentObject->oAction);
|
||||
}
|
||||
|
||||
// Execute various code based on object flags.
|
||||
objFlags = (s16) gCurrentObject->oFlags;
|
||||
|
||||
if (objFlags & OBJ_FLAG_SET_FACE_ANGLE_TO_MOVE_ANGLE) {
|
||||
obj_set_face_angle_to_move_angle(gCurrentObject);
|
||||
}
|
||||
@@ -983,6 +980,12 @@ void cur_obj_update(void) {
|
||||
obj_update_gfx_pos_and_angle(gCurrentObject);
|
||||
}
|
||||
|
||||
|
||||
if (objFlags & OBJ_FLAG_UCODE_LARGE)
|
||||
gCurrentObject->header.gfx.uCode = UCODE_DEFAULT;
|
||||
else
|
||||
gCurrentObject->header.gfx.uCode = UCODE_REJ;
|
||||
|
||||
#ifdef PUPPYLIGHTS
|
||||
puppylights_object_emit(gCurrentObject);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user