]> git.tdb.fi Git - libs/gl.git/commit
Use a sorted vector in place of set for small data
authorMikko Rasa <tdb@tdb.fi>
Sat, 30 Oct 2021 19:07:48 +0000 (22:07 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 30 Oct 2021 22:28:12 +0000 (01:28 +0300)
commit84e0e55710123e54617d342df852007f8b60af24
tree5f4c6630b627288d23269d46a22cf7b57932f9a7
parent0fa506250545acb83bc86f1734826544d6f1eda6
Use a sorted vector in place of set for small data

Despite having worse algorithmic performance, cache effects make the
vector faster for total data size of up to about 8 kB (YMMV).

The GLSL compiler can keep its sets for now, I'll create a proper class
for this at some point.
source/effects/effect.cpp
source/effects/effect.h
source/effects/environmentmap.cpp
source/effects/shadowmap.cpp
source/effects/sky.cpp
source/render/occludedscene.cpp
source/render/occludedscene.h
source/render/simplescene.cpp
source/render/simplescene.h
source/render/zsortedscene.cpp
source/render/zsortedscene.h