From 2ed50b0e8a89a088faef2f367c81681850c9ebee Mon Sep 17 00:00:00 2001 From: danij Date: Wed, 12 Jun 2013 23:22:35 +0100 Subject: [PATCH] Debug|Generators: Disabled repeat generator link warning message These are occuring so thick and fast that logging is pointless (and negatively affecting performance). Todo: Either revise the linking mechanism making this test redundant (e.g., using a set of links), or rework particle system so that it doesn't repeatedly attempt to link generators to sectors. --- doomsday/client/src/world/generators.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doomsday/client/src/world/generators.cpp b/doomsday/client/src/world/generators.cpp index 89ab5bc221..dfa2ce1707 100644 --- a/doomsday/client/src/world/generators.cpp +++ b/doomsday/client/src/world/generators.cpp @@ -162,9 +162,11 @@ ptcgen_t *Generators::linkToList(ptcgen_t *gen, uint listIndex) { if(it->gen == gen) { - LOG_AS("Generators::linkToList"); - LOG_DEBUG("Attempted repeat link of generator %p to list %u.") - << de::dintptr(gen) << listIndex; + // Warning message disabled as these are occuring so thick and fast + // that logging is pointless (and negatively affecting performance). + //LOG_AS("Generators::linkToList"); + //LOG_DEBUG("Attempted repeat link of generator %p to list %u.") + // << de::dintptr(gen) << listIndex; return gen; // No, no... }