summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-01-06 17:14:41 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-01-06 18:13:41 -0300
commitceb851b5905544a08a35cdb7b96b5062ccc16a1f (patch)
treef3635f9292587e419a8c93247b2b805349184bad /src/input_common/sdl/sdl_impl.cpp
parent85bb6a6f0847793c8bbb2870768c56e4a542c3b7 (diff)
vk_memory_manager: Misc changes
* Allocate memory in discrete exponentially increasing chunks until the 128 MiB threshold. Allocations larger thant that increase linearly by 256 MiB (depending on the required size). This allows to use small allocations for small resources. * Move memory maps to a RAII abstraction. To optimize for debugging tools (like RenderDoc) users will map/unmap on usage. If this ever becomes a noticeable overhead (from my profiling it doesn't) we can transparently move to persistent memory maps without harming the API, getting optimal performance for both gameplay and debugging. * Improve messages on exceptional situations. * Fix typos "requeriments" -> "requirements". * Small style changes.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
0 files changed, 0 insertions, 0 deletions