cancel
Showing results for 
Search instead for 
Did you mean: 

Flickering when certain element is open

Jakicaa
Associate II

Hello,

in my app I am using a listLayout that is inside a scrollable container. In that listLayout I dynamically add and remove elements based on user touch. Each element has multiple wildcards in textAreas.

Functionality is ok, but when one of the elements(MOTOR) is open, left to right flicker starts happening. When I close the element the flicker completely stops.

Couple of things I checked:

-No frames are missed

-It happens even if no data is sent(0 invalidations), but is more common if data is being sent(wildcards being invalidated)

-Other tabs use the same scrollable/listLayout with no problems

-I do not think it is a ram issue, since adding elements to the screen in runtime does not cause this issue

Video of flicker: https://www.youtube.com/shorts/Qo5VO2ftH8U

 

Picture of elements in motor: 

MotorElements.png

Picture of elements in dynamic list:

DynamicListElements.png

 

Code for adding an element -- Happens only once when we open the element (element is drawable); Everything that is dynamically allocated is cleared on screen switching:

listLayout1.remove(*element);
	delete pointerToSmallMotor;

	auto temp = new MotorContainerStatus;
	pointerToBigMotorLeft = temp;
	pointerToSmallMotor = nullptr;

        if(isMotorDataAva){//doing this for all other variables
		temp -> setMotorDataAva();
	}else{
		temp -> setMotorDataNan();
	}

	temp -> setRPM(m_PortRPM);
	temp -> setPower(m_PortVoltage * m_PortCurrent); 
	temp -> setVoltage(m_PortVoltage); 
	temp -> setCurrent(m_PortCurrent);
	temp -> setIGBTTemp(m_PortIGBT); 
	temp -> setMotorTemp(m_PortTemp); 
	temp -> setCoolantTemp(m_PortCoolantTemp);
	temp -> setStatus(motorStatus);
	temp -> setSendYourselfCallback(motorBigElementClickedCallback);
	listLayout1.insert(beginning,*temp);
	isMotor1Big=true;

	emitToggleMotorDropDownCallback();

	scrollableContainer1.invalidate();

 

Using: TouchGFX 4.25.0 designer

STM32h757 board (Riverdi 70STM32H7 config)

 

Any ideas would be appreciated.

 

0 REPLIES 0