summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-01-06 17:59:20 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-01-06 18:13:41 -0300
commit5b01f80a12b84f05bc4e34fc384f85e1a7860117 (patch)
tree35df5af1a7d6118e8cadd8ece49fd5d270bc0d30 /src/input_common/sdl/sdl_impl.cpp
parentceb851b5905544a08a35cdb7b96b5062ccc16a1f (diff)
vk_stream_buffer/vk_buffer_cache: Avoid halting and use generic cache
The stream buffer before this commit once it was full (no more bytes to write before looping) waiting for all previous operations to finish. This was a temporary solution and had a noticeable performance penalty in performance (from what a profiler showed). To avoid this mark with fences usages of the stream buffer and once it loops wait for them to be signaled. On average this will never wait. Each fence knows where its usage finishes, resulting in a non-paged stream buffer. On the other side, the buffer cache is reimplemented using the generic buffer cache. It makes use of the staging buffer pool and the new stream buffer.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
0 files changed, 0 insertions, 0 deletions