Changed the CommandPool's allocation strategy
authorAngelos Gkountis <a.gkountis@samsung.com>
Thu, 7 Jun 2018 13:52:42 +0000 (14:52 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 11 Jun 2018 17:06:04 +0000 (17:06 +0000)
commit0099264c18329898bb19b555a52aeb7e38279277
treecacf47ced75dd7d3661d581ea528327514d2bc71
parent0a63d9245f4537b001c57088a6560b4ccf805391
Changed the CommandPool's allocation strategy

- The command pool no longer resizes by a fixed amount.
- Instead it just doubles its current capacity when more buffers are needed.
- This significantly reduces the memory footprint especialy for command pools where only a small number of command buffers are actually used.

Change-Id: I5b40dbae20182b884e4e9574d159ea7e30416dbb
dali/graphics/vulkan/vulkan-command-pool.cpp