Commit 5de816e5 authored by cutealien's avatar cutealien

- Avoid one call to OutputDebugStringA in logging (OutputDebugStringA got very...

- Avoid one call to OutputDebugStringA in logging (OutputDebugStringA got very slow when debugging since VS2010)
- Demote a few logging outputs in COBJMeshFileLoader from ELL_INFORMATION to ELL_DEBUG.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3918 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 9f9ccaa4
...@@ -143,7 +143,7 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file) ...@@ -143,7 +143,7 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file)
c8 grp[WORD_BUFFER_LENGTH]; c8 grp[WORD_BUFFER_LENGTH];
bufPtr = goAndCopyNextWord(grp, bufPtr, WORD_BUFFER_LENGTH, bufEnd); bufPtr = goAndCopyNextWord(grp, bufPtr, WORD_BUFFER_LENGTH, bufEnd);
#ifdef _IRR_DEBUG_OBJ_LOADER_ #ifdef _IRR_DEBUG_OBJ_LOADER_
os::Printer::log("Loaded group start",grp); os::Printer::log("Loaded group start",grp, ELL_DEBUG);
#endif #endif
if (useGroups) if (useGroups)
{ {
...@@ -161,7 +161,7 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file) ...@@ -161,7 +161,7 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file)
c8 smooth[WORD_BUFFER_LENGTH]; c8 smooth[WORD_BUFFER_LENGTH];
bufPtr = goAndCopyNextWord(smooth, bufPtr, WORD_BUFFER_LENGTH, bufEnd); bufPtr = goAndCopyNextWord(smooth, bufPtr, WORD_BUFFER_LENGTH, bufEnd);
#ifdef _IRR_DEBUG_OBJ_LOADER_ #ifdef _IRR_DEBUG_OBJ_LOADER_
os::Printer::log("Loaded smoothing group start",smooth); os::Printer::log("Loaded smoothing group start",smooth, ELL_DEBUG);
#endif #endif
if (core::stringc("off")==smooth) if (core::stringc("off")==smooth)
smoothingGroup=0; smoothingGroup=0;
...@@ -176,7 +176,7 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file) ...@@ -176,7 +176,7 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file)
c8 matName[WORD_BUFFER_LENGTH]; c8 matName[WORD_BUFFER_LENGTH];
bufPtr = goAndCopyNextWord(matName, bufPtr, WORD_BUFFER_LENGTH, bufEnd); bufPtr = goAndCopyNextWord(matName, bufPtr, WORD_BUFFER_LENGTH, bufEnd);
#ifdef _IRR_DEBUG_OBJ_LOADER_ #ifdef _IRR_DEBUG_OBJ_LOADER_
os::Printer::log("Loaded material start",matName); os::Printer::log("Loaded material start",matName, ELL_DEBUG);
#endif #endif
mtlName=matName; mtlName=matName;
mtlChanged=true; mtlChanged=true;
......
...@@ -73,9 +73,10 @@ namespace os ...@@ -73,9 +73,10 @@ namespace os
tmp += L"\n"; tmp += L"\n";
OutputDebugStringW(tmp.c_str()); OutputDebugStringW(tmp.c_str());
#else #else
OutputDebugStringA(message); core::stringc tmp(message);
OutputDebugStringA("\n"); tmp += "\n";
printf("%s\n", message); OutputDebugStringA(tmp.c_str());
printf("%s", tmp.c_str());
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment