Skip to content

Commit

Permalink
- Undo the BG redraw optimization for Hires BGs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bubble2k16 committed Jan 18, 2017
1 parent 64352b2 commit ce8c56f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file added ctrtool
Binary file not shown.
Binary file modified snes9x_3ds.3dsx
Binary file not shown.
Binary file modified snes9x_3ds.cia
Binary file not shown.
6 changes: 3 additions & 3 deletions source/gfxhw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2225,15 +2225,15 @@ inline void __attribute__((always_inline)) S9xDrawHiresBackgroundHardwarePriorit
// So if the subscreen has already been drawn, and we are drawing the main screen,
// we simply just redraw the same vertices that we have saved.
//
if (layerDrawn[bg])
/*if (layerDrawn[bg])
{
gpu3dsBindTextureSnesTileCache(GPU_TEXUNIT0);
gpu3dsSetTextureEnvironmentReplaceTexture0WithColorAlpha();
gpu3dsEnableAlphaTestNotEqualsZero();
gpu3dsDisableDepthTest();
gpu3dsDrawVertexes(true, bg);
return;
}
}*/

//printf ("BG%d Y=%d-%d W1:%d-%d W2:%d-%d\n", bg, GFX.StartY, GFX.EndY, PPU.Window1Left, PPU.Window1Right, PPU.Window2Left, PPU.Window2Right);

Expand Down Expand Up @@ -2517,7 +2517,7 @@ inline void __attribute__((always_inline)) S9xDrawHiresBackgroundHardwarePriorit
gpu3dsSetTextureEnvironmentReplaceTexture0WithColorAlpha();
gpu3dsEnableAlphaTestNotEqualsZero();
gpu3dsEnableDepthTest();
gpu3dsDrawVertexes(false, bg);
gpu3dsDrawVertexes();
layerDrawn[bg] = true;
}

Expand Down

0 comments on commit ce8c56f

Please sign in to comment.