- cgui: now convert EventName to lowercase in SendEventToAll

- compression: now use "fastest" compression mode and more memory unless
in FINAL build. this greatly speeds up archive generation at expense of
1.5% size increase (fine during development). done because profiling
shows ZLib accounts for 78% of CPU; practically nothing else shows up,
which shows effectiveness of compressing in parallel with reading from
disk.

- file_cache: documented; fixed several potential issues with exact_buf
when invalidating files.

This was SVN commit r3586.
This commit is contained in:
janwas
2006-03-03 06:03:16 +00:00
parent c9250bd415
commit dda6268466
6 changed files with 361 additions and 172 deletions
+8 -1
View File
@@ -324,8 +324,15 @@ void CGUI::TickObjects()
void CGUI::SendEventToAll(CStr EventName)
{
// janwas 2006-03-03: spoke with Ykkrosh about EventName case.
// when registering, case is converted to lower - this avoids surprise
// if someone were to get the case wrong and then not notice their
// handler is never called. however, until now, the other end
// (sending events here) wasn't converting to lower case,
// leading to a similar problem.
// now fixed; case is irrelevant since all are converted to lower.
GUI<CStr>::RecurseObject(0, m_BaseObject,
&IGUIObject::ScriptEvent, EventName);
&IGUIObject::ScriptEvent, EventName.LowerCase());
}
//-------------------------------------------------------------------