mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
performance upgrade
This commit is contained in:
@@ -181,6 +181,11 @@ public class DrawingCache {
|
|||||||
|
|
||||||
private CacheValue renderAndCache(IDIYComponent<?> component, G2DWrapper g2d, ComponentState componentState,
|
private CacheValue renderAndCache(IDIYComponent<?> component, G2DWrapper g2d, ComponentState componentState,
|
||||||
boolean outlineMode, Project project, double zoom, double scaleFactor, int zOrder) {
|
boolean outlineMode, Project project, double zoom, double scaleFactor, int zOrder) {
|
||||||
|
|
||||||
|
if (!g2d.getClipBounds().intersects(component.getCachingBounds())) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// if we need to apply caching
|
// if we need to apply caching
|
||||||
Point2D firstPoint = component.getControlPoint(0);
|
Point2D firstPoint = component.getControlPoint(0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user