diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-08-27 02:40:04 +0200 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-08-27 13:48:07 +0200 |
commit | 27c142a57b01b7bf8b097b89fc71b2462fa3c903 (patch) | |
tree | b0856e7b74384cbf8f47c2a82df864e09ce2e756 /scene/2d/y_sort.h | |
parent | a6e37ae2bf57467ed2dae34756e27959f23776c0 (diff) |
Use memset to zero z_list
Using gprof I found the engine spending 10 - 20% of time in the
_render_canvas_item_tree function. The function profiles as using
about 0.09ms. Swapping the loop with two memset() calls reduces
the time spent in this function a lot, and the time per call to
about 0.02ms.
Likewise the render_canvas function was using ~10% of time, replacing
the loop there dropped per-call time from 0.22ms to 0.18ms.
Diffstat (limited to 'scene/2d/y_sort.h')
0 files changed, 0 insertions, 0 deletions