Paper2D Performance from 4.19+

Hello,

We’re now working on a 2D game called Unbound: Worlds Apart and we’re having some issues. Starting with Unreal 4.19 and onward the FPaperRenderSceneProxy was modified to use the DynamicMeshBuilder and this seems to cause some performance issues.

I have two screenshots below, one in 4.18.3 and one in 4.19 with the same scene, both rendering around 500 sprites. The loss of performance comes from the following function: STAT_PaperRenderSceneProxy_GetDynamicMeshElements.

Do you have any idea how I could improve the performance? I’ve looked in the FPaperRenderSceneProxy but it was heavily modified when transitioning from 4.18.3 to 4.19

4.18.3
[ATTACH=JSON]{“data-align”:“none”,“data-size”:“full”,“data-tempid”:“temp_174304_1570551121055_193”,“title”:“Unreal-4.18.3.jpg”}[/ATTACH]

4.19 - 4.23
[ATTACH=JSON]{“data-align”:“none”,“data-size”:“full”,“data-tempid”:“temp_174305_1570551160038_327”,“title”:“Unreal-4.19.jpg”}[/ATTACH]