diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-01 13:26:27 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-06-01 13:33:41 +0300 |
commit | 8c09826d58ad219b7229fcce396b967866458e99 (patch) | |
tree | 813e02d3ffda7b215f806122f80d401e809bcfbd /source/blender/depsgraph/intern/eval/deg_eval.cc | |
parent | 3c703df327c45f60cf4672874e700420e3a11f0d (diff) |
Gawain: Optimize shader uniform access
Before this change Gawain was doing list lookup twice,
doing string comparison of every and each input which
is not efficient and not friendly for CPUs with small
cache size.
Now we store hash of input name together with actual
name and compare hashes first. Additionally, we do
everything in a single pass which is much better from
cache coherency point of view.
This brings Eevee cache population time from 80ms to
60ms on my desktop and from 800ms to 400ms for Clement
when navigating in a file from T50027.
Reviewers: merwin, dfelinto
Subscribers: fclem
Differential Revision: https://developer.blender.org/D2697
Diffstat (limited to 'source/blender/depsgraph/intern/eval/deg_eval.cc')
0 files changed, 0 insertions, 0 deletions