Allow derived class to turn off "block visible" warning. More debug

logging to help sort out the blue screen problem.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2599 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-05-21 17:10:05 +00:00
parent 569522fd01
commit 768da14b79
@@ -1,5 +1,5 @@
//
// $Id: MisoScenePanel.java,v 1.35 2003/05/21 15:27:45 mdb Exp $
// $Id: MisoScenePanel.java,v 1.36 2003/05/21 17:10:05 mdb Exp $
package com.threerings.miso.client;
@@ -788,9 +788,11 @@ public class MisoScenePanel extends VirtualMediaPanel
Rectangle sbounds = block.getScreenBounds();
if (!_delayRepaint && sbounds != null && sbounds.intersects(_vbounds)) {
Log.warning("Block visible during resolution " + block +
" sbounds:" + StringUtil.toString(sbounds) +
" vbounds:" + StringUtil.toString(_vbounds) + ".");
if (warnVisible()) {
Log.warning("Block visible during resolution " + block +
" sbounds:" + StringUtil.toString(sbounds) +
" vbounds:" + StringUtil.toString(_vbounds) + ".");
}
// if we have yet further blocks to resolve, queue up a
// repaint now so that we get this data onscreen as quickly as
// possible
@@ -800,6 +802,9 @@ public class MisoScenePanel extends VirtualMediaPanel
}
}
--_pendingBlocks;
if (_pendingBlocks == 0) {
Log.info("Finished resolving pending blocks.");
}
// once all the visible pending blocks have completed their
// resolution, recompute our visible object set and show ourselves
@@ -811,6 +816,15 @@ public class MisoScenePanel extends VirtualMediaPanel
}
}
/**
* Whether or not we should issue a warning when a block becomes
* visible prior to completing resolution.
*/
protected boolean warnVisible ()
{
return true;
}
/**
* Recomputes our set of visible objects and their tips.
*/