Check for tile intersection using the polygon's bounds rather than doing
the expensive polygon/rectangle intersection test (since we're doing 400 of these every frame). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1308 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: IsoSceneView.java,v 1.107 2002/04/27 18:41:14 mdb Exp $
|
// $Id: IsoSceneView.java,v 1.108 2002/04/27 23:07:41 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.miso.scene;
|
package com.threerings.miso.scene;
|
||||||
|
|
||||||
@@ -321,7 +321,8 @@ public class IsoSceneView implements SceneView
|
|||||||
Polygon tpoly = getTilePoly(xx, yy);
|
Polygon tpoly = getTilePoly(xx, yy);
|
||||||
|
|
||||||
// skip non-intersecting tiles
|
// skip non-intersecting tiles
|
||||||
if (!tpoly.intersects(clip)) {
|
// if (!tpoly.intersects(clip)) {
|
||||||
|
if (!tpoly.getBounds().intersects(clip)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user