Fix #35337: sculpt performance regression, partial redraw was not working anymore
[blender.git] / source / blender / editors / screen / area.c
index 188340e70a373118da839798ad151e900bf69122..749fa40a76c68989d7df631abec6ad142dcd6545 100644 (file)
@@ -454,6 +454,14 @@ void ED_region_do_draw(bContext *C, ARegion *ar)
 
        ED_region_draw_cb_draw(C, ar, REGION_DRAW_POST_PIXEL);
 
+       /* for debugging unneeded area redraws and partial redraw */
+#if 0
+       glEnable(GL_BLEND);
+       glColor4f(drand48(), drand48(), drand48(), 0.1f);
+       glRectf(ar->drawrct.xmin - 1, ar->drawrct.ymin - 1, ar->drawrct.xmax + 1, ar->drawrct.ymax + 1);
+       glDisable(GL_BLEND);
+#endif
+
        ar->do_draw = FALSE;
        memset(&ar->drawrct, 0, sizeof(ar->drawrct));