mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
perf(ui): caching efficiency
This commit is contained in:
parent
604bf4e9ec
commit
5edce0a4de
@ -217,7 +217,6 @@ const renderRPLayer = (
|
||||
|
||||
if (konvaObjectGroup.opacity() !== layerOpacity) {
|
||||
konvaObjectGroup.opacity(layerOpacity);
|
||||
groupNeedsCache = true;
|
||||
}
|
||||
|
||||
// Remove deleted objects
|
||||
@ -265,8 +264,8 @@ const renderRPLayer = (
|
||||
groupNeedsCache = true;
|
||||
}
|
||||
// Only update layer visibility if it has changed.
|
||||
if (konvaObject.visible() !== rpLayer.isVisible) {
|
||||
konvaObject.visible(rpLayer.isVisible);
|
||||
if (konvaLayer.visible() !== rpLayer.isVisible) {
|
||||
konvaLayer.visible(rpLayer.isVisible);
|
||||
groupNeedsCache = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user