Merge pull request #285 from kyzentun/ClearZPref

Added FastNoteRendering preference.
This commit is contained in:
Colby Klein
2014-08-31 18:15:25 -07:00
6 changed files with 17 additions and 3 deletions
+7 -1
View File
@@ -36,8 +36,11 @@ static ThemeMetric<float> FADE_FAIL_TIME( "NoteField", "FadeFailTime" );
static RString RoutineNoteSkinName( size_t i ) { return ssprintf("RoutineNoteSkinP%i",int(i+1)); }
static ThemeMetric1D<RString> ROUTINE_NOTESKIN( "NoteField", RoutineNoteSkinName, NUM_PLAYERS );
static bool FAST_NOTE_RENDERING_PREF_CACHED= false;
NoteField::NoteField()
{
FAST_NOTE_RENDERING_PREF_CACHED= PREFSMAN->m_FastNoteRendering;
m_pNoteData = NULL;
m_pCurDisplay = NULL;
@@ -1355,7 +1358,10 @@ void NoteField::DrawPrimitives()
bool bNoteIsUpcoming = NoteRowToBeat(q) > m_pPlayerState->GetDisplayedPosition().m_fSongBeat;
bAnyUpcomingInThisCol |= bNoteIsUpcoming;
DISPLAY->ClearZBuffer();
if(!FAST_NOTE_RENDERING_PREF_CACHED)
{
DISPLAY->ClearZBuffer();
}
}
cur->m_ReceptorArrowRow.SetNoteUpcoming( c, bAnyUpcomingInThisCol );
+1
View File
@@ -184,6 +184,7 @@ PrefsManager::PrefsManager() :
m_bHiddenSongs ( "HiddenSongs", false ),
m_bVsync ( "Vsync", true ),
m_FastNoteRendering("FastNoteRendering", false),
m_bInterlaced ( "Interlaced", false ),
m_bPAL ( "PAL", false ),
m_bDelayedTextureDelete ( "DelayedTextureDelete", false ),
+1
View File
@@ -175,6 +175,7 @@ public:
Preference<bool> m_bHiddenSongs;
Preference<bool> m_bVsync;
Preference<bool> m_FastNoteRendering;
Preference<bool> m_bInterlaced;
Preference<bool> m_bPAL;
Preference<bool> m_bDelayedTextureDelete;
+1
View File
@@ -779,6 +779,7 @@ static void InitializeConfOptions()
g_ConfOptions.back().m_iEffects = OPT_APPLY_GRAPHICS;
ADD( ConfOption( "Vsync", MovePref<bool>, "No", "Yes" ) );
g_ConfOptions.back().m_iEffects = OPT_APPLY_GRAPHICS;
ADD( ConfOption( "FastNoteRendering", MovePref<bool>, "Off", "On"));
ADD( ConfOption( "ShowStats", MovePref<bool>, "Off","On" ) );
ADD( ConfOption( "ShowBanners", MovePref<bool>, "Off","On" ) );