How to realize dirty area redrawing with canvas

problem description

how to redraw (dirty rectangle) in the dirty area of canvas when the data changes

the environmental background of the problems and what methods you have tried

when the data changes, you want to modify it with minimum granularity to reduce the pressure on CPU.

from the articles consulted, canvas does not have a ready-made method for redrawing dirty areas. It can only record the location of each element under scene, and then use clip to modify the elements in the corresponding position.

but in this case, I don"t know what to do with some elements that may have coincident parts.

I hope those who have studied can give me some advice

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e98e7c-474d1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e98e7c-474d1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?