From 221d04642a99d103a12eab8c8400549ce5da06de Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 2 Jun 2012 23:06:48 +0200 Subject: [PATCH] Changed: Debug messages --HG-- branch : sound_dev --- code/nel/src/3d/ps_sound.cpp | 8 ++++++++ code/nel/src/misc/sheet_id.cpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/code/nel/src/3d/ps_sound.cpp b/code/nel/src/3d/ps_sound.cpp index 5cee12c3e..a5ae6ad26 100644 --- a/code/nel/src/3d/ps_sound.cpp +++ b/code/nel/src/3d/ps_sound.cpp @@ -262,6 +262,14 @@ void CPSSound::serial(NLMISC::IStream &f) throw(NLMISC::EStream) // version 3 : added option to keep original pitch from the .sound sint ver = f.serialVersion(3); + // FIXME: CPSSound is reserialized from the _ParticleSystemProto + // cache when a non-_Shared particle system is instanced, this + // causes unnecessary sheet id lookups from string. + // SLN1: Serialize as uint32, but this requires the editor to know + // the correct sheet id (and thus requires a built sheet_id.bin). + // SLN2: Create a tool that reserializes all ps with sound sheet id + // instead of sheet names, based on a global flag, and serialize + // a flag that specifies if the ps is serialized with id or name. _SoundName.serialString(f, "sound"); sint32 nbSounds; diff --git a/code/nel/src/misc/sheet_id.cpp b/code/nel/src/misc/sheet_id.cpp index 9bb5894b8..b9811c201 100644 --- a/code/nel/src/misc/sheet_id.cpp +++ b/code/nel/src/misc/sheet_id.cpp @@ -112,7 +112,7 @@ CSheetId::CSheetId( const std::string& sheetName, const std::string &defaultType { std::string withType = sheetName + "." + defaultType; *this = CSheetId(withType); - nldebug("SHEETID: Constructing CSheetId from name '%s' without explicit type, defaulting as '%s' to '%s'", sheetName.c_str(), defaultType.c_str(), withType.c_str()); + // nldebug("SHEETID: Constructing CSheetId from name '%s' without explicit type, defaulting as '%s' to '%s'", sheetName.c_str(), defaultType.c_str(), withType.c_str()); } else *this = CSheetId(sheetName);