Commit Graph

31 Commits

Author SHA1 Message Date
Kyzentun 8b09da8e64 Various changes to speed up start up time:
Added delay_save_cache to SongCacheIndex so that it doesn't write the entire cache index file after every song is loaded when loading songs.
Added m_SongsByDir to SongManager so that GetSongFromDir doesn't have to walk the entire list of songs.
Minor changes to when LoadEnabledSongsFromPref occurs and how SanityCheckGroupDir works to speed up loading.
Song::ReloadFromSongDir removes cache file to force an actual reload from the song dir instead of reloading from the cache.  ReloadFromSongDir exposed to lua.
Reordered Actor::LoadFromNode to put Command first because that case is more common.
Course::GetTrailUnsorted reserves entries before starting to save time reallocating.
join in RageUtil calculates the final size of the concatenated strings reserves it to save time reallocating.
Added time log file to RageLog for profiling.
2015-03-30 17:45:52 -06:00
Kyzentun bcb2589114 Fixed endless courses to make them repick on repeats and not crash after repeating. 2014-09-10 02:44:49 -06:00
Kyzentun 2e43a70752 Fixed Course::GetTotalSeconds to work on courses that don't have a medium difficulty. A course with only double charts was probably the one that made the crash manifest. 2014-08-02 00:38:39 -07:00
Ben "root" Anderson fdbedaee06 Now how did I manage to forget that. 2014-01-14 21:15:58 -06:00
Ben "root" Anderson 1cca4aa309 Check extra carefully that courses are actually playable. 2014-01-14 21:14:56 -06:00
Devin J. Pohly bd0e2074ad replace ASSERT(0) with useful fail messages 2012-12-27 16:59:35 -05:00
AJ Kelly 058c90aceb [Course] Added AllSongsAreFixed() Lua binding. 2012-05-14 00:25:58 -05:00
AJ Kelly 39f3a978eb I hate when I miss small things. 2011-08-21 19:36:18 -05:00
AJ Kelly ecaee24102 I'm dumb :( 2011-08-21 19:35:51 -05:00
AJ Kelly 38625e55d8 [Course] Add IsPlayableIn(StepsType) and IsRanking() Lua bindings. 2011-08-18 23:54:01 -05:00
AJ Kelly 6bdaf5c92a [Course] Bumped up max edit course title length to 16 (still feels too short). Also added #DESCRIPTION tag and Course:GetDescription() Lua binding. 2011-07-21 16:17:48 -05:00
Jason Felds dbdab4759e [Xcode4] May as well fix switch warnings.
Still need some assistance for the linker error.
2011-07-20 11:11:04 -04:00
Jason Felds 1f51dec22c Fix initialization warning. 2011-05-12 14:39:42 -04:00
AJ Kelly 6aec949c06 [Course] Added #SCRIPTER tag and GetScripter Lua binding. 2011-04-30 23:30:58 -05:00
Jason Felds 12872f0a50 More effective fixes. Still no issues.
Note: you will most likely end up recompiling the whole thing.
2011-03-19 20:40:35 -04:00
Jason Felds 22b7b34897 More effective fixes.
Course playing still results in it playing fine.
2011-03-19 18:26:55 -04:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
Jason Felds 81ccc7daba Quickly variables! Into the magic mirror! 2011-03-14 03:32:07 -04:00
Jason Felds d855d8c7e8 Bring light into the shadow...variables.
Yeah, yeah, can't make a good joke at 2:30 AM.
2011-03-14 02:36:48 -04:00
Jason Felds 81a8fb2a09 Move Lua Bindings to the end for consistency. 2011-03-06 01:55:48 -05:00
Jason Felds 9d13036e08 Add @briefs to the Luna classes.
Yeah...there was a lot. */
2011-02-19 12:26:18 -05:00
AJ Kelly ccc3a55cca [Course] add GetCourseEntries() Lua binding.
[Trail] add GetTrailEntries() Lua binding.
2010-07-03 17:52:57 -05:00
AJ Kelly acb9099c75 comment/cleanup 2010-06-30 00:04:52 -05:00
AJ Kelly e7917f0721 [Course] add GetCourseDir(), HasBackground(), IsAnEdit() Lua bindings. 2010-05-26 00:07:00 -05:00
AJ Kelly 0447edcd99 add some Lua bindings to CourseEntry:
IsSecret() - returns a bool
IsFixedSong() - returns a bool
GetGainSeconds() - returns a float
GetGainLives() - returns a int
GetNormalModifiers() - returns a string
GetNumModChanges() - returns a int
GetTextDescription() - returns a string
2010-04-26 03:16:20 -05:00
AJ Kelly 02b0ef90d2 IIRC, SongSort_TopGrades and SongSort_LowestGrades rely on PROFILEMAN. 2010-04-20 23:03:44 -05:00
AJ Kelly 642f4b107c the various changes that I forgot to commit (cleanup and so forth) into hg,
culminating in syncing with sm-ssc v1.0 public beta 2
2010-03-31 17:37:09 -05:00
AJ Kelly 9b8da1f06a fix compile 2010-02-02 20:08:44 -06:00
AJ Kelly ca8f660c4f syncing changes from ssc svn, mostly.
[Course.cpp] HasTimedMods() now actually checks for timed mods (technically non-global) instead of being a clone of HasMods()
[Player.cpp] add MAX_HOLD_LIFE/[Player] MaxHoldLife metric
[ScreenGameplay] looking into places to put loading of replay data, perhaps?
[elsewhere] lots of cleanup, and I'm sure there's lots more to be done.
add a todo to ProductivityHelpers.
2010-02-02 16:00:10 -06:00
AJ Kelly 3e51544930 Initial commit. 2010-01-26 21:00:30 -06:00
Devin J. Pohly 80057f53cd smsvn -> ssc-hg glue: rearrange directory structure 2013-06-10 15:38:43 -04:00