Skip to content

Commit

Permalink
Debug|Generators: Disabled repeat generator link warning message
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danij-deng committed Jun 12, 2013
1 parent a7042d5 commit 2ed50b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doomsday/client/src/world/generators.cpp
Expand Up @@ -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...
}
Expand Down

0 comments on commit 2ed50b0

Please sign in to comment.