Commit Graph
69 Commits
Author SHA1 Message Date
Steve Checkoway 450ebed713 Remove timing code. There is likely more to optimize here. The current break down for time spent is, 51.9% in XmlFileUtil::SaveToFile (all of that in GetXMLInternal), 23.7% in RadarValues::CreateNode (with half of that in ssprintf alone!), 12.8% in XNode::Free and the rest is spread around pretty evenly. For reference, before these changes, it was taking about 3.5 seconds to write my catalog.xml and now it's taking under 1.5 (that's .8 seconds for writing and .5 for creating the XNodes for Songs, if anyone was wondering). 2007-02-04 13:36:16 +00:00
Steve Checkoway 169d7c8b44 Greatly decrease time to write catalog.xml by pulling THEME->GetMetricB out of the inner loop and passing it along to RadarValues. (Also don't copy the vector of Song*.) The time to generate the XNode for Songs was cut down by a fifth (from 2.5 seconds to .5 seconds for me, fully optimized). 2007-02-04 09:35:02 +00:00
Glenn Maynard 4ccea4e87b phase out separate course difficulty names 2006-10-07 22:49:04 +00:00
Glenn Maynard 19e7328d78 move XML loading and saving into XmlFileUtil, reducing XNode
to a data structure
2006-10-02 05:53:56 +00:00
Steve Checkoway 01fb4540f3 Simplify. 2006-10-01 14:51:50 +00:00
Steve Checkoway b7ce93ffad Simplify. 2006-10-01 14:02:24 +00:00
Steve Checkoway f73100705b Simplify. 2006-10-01 13:55:01 +00:00
Steve Checkoway 01cd66bd0f DISP_OPT -> XMLDisplayOptions. 2006-10-01 13:07:20 +00:00
Steve Checkoway 884af552ee Allow combined player steps to have per-player radar values. This doesn't work for trails where it just uses the PLAYER_1 values, same with writing to the catalog file. 2006-07-28 03:34:14 +00:00
Chris Danford aa88059c80 fix mis-named: GetOptionNames -> GetModifierNames 2006-06-24 05:16:38 +00:00
Glenn Maynard ff57da3b77 fix and simplify 2006-06-14 05:33:48 +00:00
Chris Danford af3e1c571c move Steps searching out of song into SongUtil so that it can be shared with CourseEntry 2006-06-13 01:10:37 +00:00
Chris Danford f22d32f70a fix catalog.xml out of date after reloading songs 2006-05-16 06:01:12 +00:00
Steve Checkoway 2b02ad8151 Cleanup. 2006-05-14 08:09:22 +00:00
Jason Felds e0c4a4e93c Tab fix (I was not using 4 spaces per tab). 2006-05-14 03:44:50 +00:00
Jason Felds 0c66c23f7b Adding comments to the code. 2006-05-14 03:31:10 +00:00
Chris Danford 5b756e7e31 remove confusing overlap between "requirements met" and "unlocked" 2006-05-03 21:34:05 +00:00
Steve Checkoway 439c0f2011 IsFixed and AllSongsAreFixed were identical. IsFixed -> AllSongsAreFixed. 2006-02-21 01:48:01 +00:00
Chris Danford 49782b331b Theme -> Localize 2006-01-29 22:13:36 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Chris Danford 704cb4b9bf make sure "catalog.xml" doesn't get localized 2006-01-08 20:10:18 +00:00
Chris Danford fc18dbd342 make more strings localizable 2006-01-08 18:40:20 +00:00
Chris Danford 44225ad379 XToThemedString -> XToLocalizedString 2006-01-07 04:11:29 +00:00
Glenn Maynard b01308783e unused headers 2005-12-19 00:42:29 +00:00
Chris Danford 100ce95f14 don't pass DISPLAY_OPT as a pointer to avoid NULL pointer deref 2005-11-22 21:14:48 +00:00
Chris Danford 0f0caf7972 Writable files in "Save", read-only files in "Data". This simplifies the installer and packaging. 2005-10-30 23:08:38 +00:00
Chris Danford 8b8fa8aad3 move CommonMetrics into a namespace so that it's clear where they're coming from when used. 2005-10-27 05:16:19 +00:00
Chris Danford 2a6dcba6e8 cleanup:
"GroupName" -> "SongGroup" to make room for CourseGroup
replace checks for "cvs" with a call to StripCvs()
m_Rows -> m_pRows
broadcast on preferred group changes
2005-06-23 08:05:09 +00:00
Glenn Maynard 11b47255ee fix strings 2005-06-09 04:27:12 +00:00
Chris Danford 2509cdac31 fix wrong CourseDifficulties shown 2005-05-24 05:27:36 +00:00
Chris Danford a9cd1c89a8 more efficient translate (XSLT processes 33% faster) 2005-05-23 19:49:38 +00:00
Chris Danford 56b8a409a2 add steps/song count by group, StepsType 2005-05-23 00:36:46 +00:00
Chris Danford cac3d56730 GetModifierNames: use vector not set for easier interaction with Lua 2005-05-22 15:03:03 +00:00
Chris Danford 2d2a1be418 don't print strings for hidden steps types 2005-05-20 08:19:56 +00:00
Chris Danford df0f224ae0 show totals and unlock totals in Catalog.xml
don't show locked in Catalog.xml
2005-04-28 21:20:20 +00:00
Chris Danford ea34de2bef one path for parsing and theming player options - fixes "SuperShuffle" not themed
warn in ActiveAttackList if an invalid mod is encountered
don't hard code font name
2005-04-06 05:32:09 +00:00
Chris Danford 0c37abf400 ignore locked and tutorial songs when choosing songs for random CourseEntries 2005-03-27 11:52:04 +00:00
Chris Danford 5d8456e3ea metrics cleaup: Remove duplicated "ToShow" and "ToHide" parsing logic
don't show hidden StepsTypes in EditMenu
2005-03-24 21:44:03 +00:00
Chris Danford 8b32383969 move DifficultiesToShow into CommonMetrics
re-cache on theme reload, not on timer expired
2005-03-10 19:57:43 +00:00
Chris Danford cf698b55a0 clean up XML error handling 2005-02-18 13:05:17 +00:00
Chris Danford 981e52ec58 merge IniFile and XmlFile 2005-01-07 14:28:00 +00:00
Chris Danford d2a54cca31 make TapNote a struct. Over time, more properties will move from the enums and into bit flags. 2004-09-12 05:56:24 +00:00
Glenn Maynard 6fda4030ee optimize 2004-09-07 09:16:08 +00:00
Chris Danford f10efc414a reduce Stats.xml file size: don't write tab indent characters 2004-08-28 21:37:57 +00:00
Chris Danford 37f6c81862 add XSL for Catalog.xml
fold CSS into XML
2004-08-20 05:22:46 +00:00
Chris Danford 962714a978 don't show Training in Catalog.xml 2004-08-19 04:37:47 +00:00
Chris Danford 80191a95cc fix "Steps in Catalog.xml aren't ordered by StepsType/Difficulty" 2004-08-19 04:19:48 +00:00
Chris Danford 51feb824a6 hide some StepsTypes from catalog.xml 2004-08-18 06:38:22 +00:00
Glenn Maynard 1a0e066c7d vc fix? 2004-08-06 04:27:31 +00:00
Chris Danford 64628fac21 remove enum Game. Instead, pass around the GameDef pointer 2004-07-25 04:27:20 +00:00