From 768da14b7988aa40280b018f95dcab82c8bd6d41 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 21 May 2003 17:10:05 +0000 Subject: [PATCH] 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 --- .../miso/client/MisoScenePanel.java | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/java/com/threerings/miso/client/MisoScenePanel.java b/src/java/com/threerings/miso/client/MisoScenePanel.java index c9f323ca8..12eb843e1 100644 --- a/src/java/com/threerings/miso/client/MisoScenePanel.java +++ b/src/java/com/threerings/miso/client/MisoScenePanel.java @@ -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. */