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:
@@ -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;
|
package com.threerings.miso.client;
|
||||||
|
|
||||||
@@ -788,9 +788,11 @@ public class MisoScenePanel extends VirtualMediaPanel
|
|||||||
|
|
||||||
Rectangle sbounds = block.getScreenBounds();
|
Rectangle sbounds = block.getScreenBounds();
|
||||||
if (!_delayRepaint && sbounds != null && sbounds.intersects(_vbounds)) {
|
if (!_delayRepaint && sbounds != null && sbounds.intersects(_vbounds)) {
|
||||||
Log.warning("Block visible during resolution " + block +
|
if (warnVisible()) {
|
||||||
" sbounds:" + StringUtil.toString(sbounds) +
|
Log.warning("Block visible during resolution " + block +
|
||||||
" vbounds:" + StringUtil.toString(_vbounds) + ".");
|
" sbounds:" + StringUtil.toString(sbounds) +
|
||||||
|
" vbounds:" + StringUtil.toString(_vbounds) + ".");
|
||||||
|
}
|
||||||
// if we have yet further blocks to resolve, queue up a
|
// if we have yet further blocks to resolve, queue up a
|
||||||
// repaint now so that we get this data onscreen as quickly as
|
// repaint now so that we get this data onscreen as quickly as
|
||||||
// possible
|
// possible
|
||||||
@@ -800,6 +802,9 @@ public class MisoScenePanel extends VirtualMediaPanel
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
--_pendingBlocks;
|
--_pendingBlocks;
|
||||||
|
if (_pendingBlocks == 0) {
|
||||||
|
Log.info("Finished resolving pending blocks.");
|
||||||
|
}
|
||||||
|
|
||||||
// once all the visible pending blocks have completed their
|
// once all the visible pending blocks have completed their
|
||||||
// resolution, recompute our visible object set and show ourselves
|
// 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.
|
* Recomputes our set of visible objects and their tips.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user