Let's have some debug logging so that we can investigate potential block

resolution wackiness.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2524 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-05-02 18:09:56 +00:00
parent 7c7db998ac
commit 57ee4d56c8
2 changed files with 8 additions and 9 deletions
@@ -1,5 +1,5 @@
//
// $Id: MisoScenePanel.java,v 1.24 2003/05/02 15:13:20 mdb Exp $
// $Id: MisoScenePanel.java,v 1.25 2003/05/02 18:09:56 mdb Exp $
package com.threerings.miso.client;
@@ -624,7 +624,7 @@ public class MisoScenePanel extends VirtualMediaPanel
key.x = block.getBounds().x;
key.y = block.getBounds().y;
if (!_rethinkOp.blocks.contains(key)) {
// Log.info("Flushing block " + block + ".");
Log.debug("Flushing block " + block + ".");
iter.remove();
}
}
@@ -639,7 +639,6 @@ public class MisoScenePanel extends VirtualMediaPanel
this, origin.x, origin.y,
_metrics.blockwid, _metrics.blockhei);
_blocks.put(bkey, block);
// Log.info("Created new block " + block + ".");
// queue the block up to be resolved
_pendingBlocks++;
@@ -1,5 +1,5 @@
//
// $Id: SceneBlockResolver.java,v 1.2 2003/04/25 22:13:14 mdb Exp $
// $Id: SceneBlockResolver.java,v 1.3 2003/05/02 18:09:56 mdb Exp $
package com.threerings.miso.client;
@@ -20,6 +20,7 @@ public class SceneBlockResolver extends LoopingThread
*/
public void resolveBlock (SceneBlock block)
{
Log.debug("Queueing block for resolution " + block + ".");
_queue.append(block);
}
@@ -29,11 +30,10 @@ public class SceneBlockResolver extends LoopingThread
final SceneBlock block = (SceneBlock)_queue.get();
try {
// resolve the block
block.resolve();
// if (block.resolve()) {
// Log.info("Resolved block " + block + ".");
// }
Log.debug("Resolving block " + block + ".");
if (block.resolve()) {
Log.debug("Resolved block " + block + ".");
}
// queue it up on the AWT thread to complete its resolution
EventQueue.invokeLater(new Runnable() {