aboutsummaryrefslogtreecommitdiff
path: root/src/core/loader/xci.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-08-22 15:43:52 -0400
committerLioncash <mathew1800@gmail.com>2018-08-22 17:04:44 -0400
commit1fd979f50a9f4c21fa8cafba7268d959e3076924 (patch)
tree8a46d4c11a65340b316f5bb8d1f895410f3636af /src/core/loader/xci.cpp
parentd1b1c42c0784740b13ba0263751c391b6d5df060 (diff)
gl_shader_gen: Use a std::vector to represent program code instead of std::array
While convenient as a std::array, it's also quite a large set of data as well (32KB). It being an array also means data cannot be std::moved. Any situation where the code is being set or relocated means that a full copy of that 32KB data must be done. If we use a std::vector we do need to allocate on the heap, however, it does allow us to std::move the data we have within the std::vector into another std::vector instance, eliminating the need to always copy the program data (as std::move in this case would just transfer the pointers and bare necessities over to the new vector instance).
Diffstat (limited to 'src/core/loader/xci.cpp')
0 files changed, 0 insertions, 0 deletions