Thread: IPlug - Youlean
View Single Post
Old 06-22-2018, 08:35 PM   #415
Opcode 7
Human being with feelings
 
Join Date: Mar 2017
Posts: 50
Default

Thanks, good suggestion Bob! I traced the slow resizing performance to the "GetLayoutContainerIsHidden" call (when there's a tonnn of parameters!) Adding the following checks to ResizeControlRects() made my resizing snappy again!

Code:
		IControl* pControl = mGraphics->GetControl(i);
		if (pControl->IsHidden()) {
			continue;
		}

		int *isHidden = GetLayoutContainerIsHidden(current_view_mode, pControl);
		if (*isHidden) {
			continue;
		}
Opcode 7 is offline   Reply With Quote