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)
c8 grp[WORD_BUFFER_LENGTH];
bufPtr = goAndCopyNextWord(grp, bufPtr, WORD_BUFFER_LENGTH, bufEnd);
#ifdef _IRR_DEBUG_OBJ_LOADER_
os::Printer::log("Loaded group start",grp);
os::Printer::log("Loaded group start",grp, ELL_DEBUG);
#endif
if (useGroups)
{
......@@ -161,7 +161,7 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file)
c8 smooth[WORD_BUFFER_LENGTH];
bufPtr = goAndCopyNextWord(smooth, bufPtr, WORD_BUFFER_LENGTH, bufEnd);
#ifdef _IRR_DEBUG_OBJ_LOADER_
os::Printer::log("Loaded smoothing group start",smooth);
os::Printer::log("Loaded smoothing group start",smooth, ELL_DEBUG);
#endif
if (core::stringc("off")==smooth)
smoothingGroup=0;
......@@ -176,7 +176,7 @@ IAnimatedMesh* COBJMeshFileLoader::createMesh(io::IReadFile* file)
c8 matName[WORD_BUFFER_LENGTH];
bufPtr = goAndCopyNextWord(matName, bufPtr, WORD_BUFFER_LENGTH, bufEnd);
#ifdef _IRR_DEBUG_OBJ_LOADER_
os::Printer::log("Loaded material start",matName);
os::Printer::log("Loaded material start",matName, ELL_DEBUG);
#endif
mtlName=matName;
mtlChanged=true;
......
......@@ -73,9 +73,10 @@ namespace os
tmp += L"\n";
OutputDebugStringW(tmp.c_str());
#else
OutputDebugStringA(message);
OutputDebugStringA("\n");
printf("%s\n", message);
core::stringc tmp(message);
tmp += "\n";
OutputDebugStringA(tmp.c_str());
printf("%s", tmp.c_str());
#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