More aggressive caching. In general, this makes Stepmania avoid looking in the song directory at all if the song is in the cache, in order to load songs faster. All the RadarValue calculations were also rolled into one to reduce the time needed to build the cache.

This commit is contained in:
Kyzentun
2015-03-23 11:35:30 -06:00
parent 05f455cc17
commit a2798e16f4
10 changed files with 502 additions and 457 deletions
+5
View File
@@ -58,6 +58,11 @@ float RageTimer::GetTimeSinceStart( bool bAccurate )
return uint32_t(usecs>>32) * 4294.967296f + uint32_t(usecs)/1000000.f;
}
uint64_t RageTimer::GetUsecsSinceStart()
{
return GetTime(true) - g_iStartTime;
}
void RageTimer::Touch()
{
uint64_t usecs = GetTime( true );