Screen flicker/blink on Samsung

Screen flicker/blink on Samsung
0

Hello.
I use few (3) DrawNode objects in my cpp code to draw some lines and rectangles. Every frame I clean DrawNode and draw new primitives.
After migrating from (ndk-r15 and cocos 3.16) to (ndk-r16 and cocos 3.17.2) there appeared screen flicker/blink on Samsung device only. After some time all drawing primitives disappear for ever. Sometimes they do not appear at app start.
Any hint, how to fix that?

Upd.:
Seems, the workaround is:
//DrawNode * m_dn_background;
m_dn_background->removeFromParent();
m_dn_background = 0;
m_dn_background = DrawNode::create();
this->addChild(m_dn_background, 3);

at every redraw, instead of
m_dn_background->clear();