summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControlReference/ControlReference.cpp
diff options
context:
space:
mode:
authorJonathan Hamilton <jtrhamilton@gmail.com>2018-06-25 22:01:37 -0700
committerJonathan Hamilton <jtrhamilton@gmail.com>2018-07-02 09:52:15 -0700
commitac05d1a593cea074b66a589d2698334d31cb0ca9 (patch)
treee80f4766c9edd777b3a158389345ce927e5b1414 /Source/Core/InputCommon/ControlReference/ControlReference.cpp
parent4eeef6e5b39b11daefca009c8645560591accc52 (diff)
Do all arbitrary mipmap detection in integer space
This no longer converts from sRGB to linear for the reference mip downsample - even if the original mipmap creation tool used an sRGB colorspace (which isn't really guaranteed, and may even change per game), this is a "fast" heuristic that's only an estimate anyway. The average diff is also now stored in a u64, avoiding floating point calculations in the per-pixel hot loop. This should speed up the detection significantly, hopefully fixing jank when loading in new textures.
Diffstat (limited to 'Source/Core/InputCommon/ControlReference/ControlReference.cpp')
0 files changed, 0 insertions, 0 deletions