summaryrefslogtreecommitdiff
path: root/src/core/frontend/framebuffer_layout.cpp
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2020-05-21 01:06:40 -0300
committerGravatar ReinUsesLisp2020-05-21 16:44:00 -0300
commita2dcc642c1737721bafe54605c7826fa08d18f47 (patch)
tree655b96d46815d93259b12dccc8acad293437db41 /src/core/frontend/framebuffer_layout.cpp
parentbuffer_cache: Use boost::container::small_vector for maps in range (diff)
downloadyuzu-a2dcc642c1737721bafe54605c7826fa08d18f47.tar.gz
yuzu-a2dcc642c1737721bafe54605c7826fa08d18f47.tar.xz
yuzu-a2dcc642c1737721bafe54605c7826fa08d18f47.zip
map_interval: Add interval allocator and drop hack
Drop the std::list hack to allocate memory indefinitely. Instead use a custom allocator that keeps references valid until destruction. This allocates fixed chunks of memory and puts pointers in a free list. When an allocation is no longer used put it back to the free list, this doesn't heap allocate because std::vector doesn't change the capacity. If the free list is empty, allocate a new chunk.
Diffstat (limited to 'src/core/frontend/framebuffer_layout.cpp')
0 files changed, 0 insertions, 0 deletions