Ignore insert/erase function during PreRender's itemsDirtyRects 12/271512/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 22 Feb 2022 08:19:22 +0000 (17:19 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 22 Feb 2022 09:08:52 +0000 (18:08 +0900)
commitf19e582fe69147df2e753162086b2d18611b12ae
tree7a23a04915328a13f3f59e8c1e0de9c2bbfd1cc4
parent5a787f2a033890b943ec6251e0fd5a66d6def686
Ignore insert/erase function during PreRender's itemsDirtyRects

Previous code just insert and erase when the renderer hold dirtyRect
more than 3.
Each insert & erase operation in std::vector cost O(N). and it is expensive.

This patch reduce the insert & erase operation when renderer hold dirtyRect
more than 3. We can do tge same job by just moving data linearly.

(This patch is follow up 250728)

Change-Id: I230f32f07c72c3a4f15c6bb7f6a42bd61ce87d1d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/render/common/render-manager.cpp