Increase viewport chunking size

This commit is contained in:
Jonathan G Rennison
2020-03-03 22:01:49 +00:00
parent 8956b1ab02
commit d740a19e5f

View File

@@ -3100,7 +3100,7 @@ void ViewportDoDraw(const ViewPort *vp, int left, int top, int right, int bottom
*/ */
static void ViewportDrawChk(const ViewPort *vp, int left, int top, int right, int bottom) static void ViewportDrawChk(const ViewPort *vp, int left, int top, int right, int bottom)
{ {
if ((vp->zoom < ZOOM_LVL_DRAW_MAP) && ((int64)ScaleByZoom(bottom - top, vp->zoom) * (int64)ScaleByZoom(right - left, vp->zoom) > (int64)(180000 * ZOOM_LVL_BASE * ZOOM_LVL_BASE))) { if ((vp->zoom < ZOOM_LVL_DRAW_MAP) && ((int64)ScaleByZoom(bottom - top, vp->zoom) * (int64)ScaleByZoom(right - left, vp->zoom) > (int64)(1000000 * ZOOM_LVL_BASE * ZOOM_LVL_BASE))) {
if ((bottom - top) > (right - left)) { if ((bottom - top) > (right - left)) {
int t = (top + bottom) >> 1; int t = (top + bottom) >> 1;
ViewportDrawChk(vp, left, top, right, t); ViewportDrawChk(vp, left, top, right, t);