diff options
author | Markus Wick <markus@selfnet.de> | 2018-09-04 20:55:34 +0200 |
---|---|---|
committer | Markus Wick <markus@selfnet.de> | 2018-09-04 21:04:41 +0200 |
commit | 99a71580c4356c51bcb5f18b10be55f1e62a65e5 (patch) | |
tree | 8e32bd63d0d5e0297208959bbb9b6851ab39ba8f /src/core/loader/loader.h | |
parent | dda4b5e89ee428d4e872246459db308b2701eef1 (diff) |
gl_shader_cache: Use an u32 for the binding point cache.
The std::string generation with its malloc and free requirement
was a noticeable overhead. Also switch to an ordered_map to
avoid the std::hash call. As those maps usually have a size of
two elements, the lookup time shall not matter.
Diffstat (limited to 'src/core/loader/loader.h')
0 files changed, 0 insertions, 0 deletions