summaryrefslogtreecommitdiffhomepage
path: root/bench/bitmask.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-11 08:45:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-11 13:12:53 +0200
commit44a3a2bfbf5c1ca94f7abcddab86f5873743fdbc (patch)
treec5cdcbf05ff13826cf6f3cc9b70b871c9213f633 /bench/bitmask.cpp
parenta71d2c6b2ed5b558485eaa234513a2ce9f153dba (diff)
bench: adjust warmups
Diffstat (limited to 'bench/bitmask.cpp')
-rw-r--r--bench/bitmask.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/bench/bitmask.cpp b/bench/bitmask.cpp
index 1156a9f7..861f6ad7 100644
--- a/bench/bitmask.cpp
+++ b/bench/bitmask.cpp
@@ -14,8 +14,9 @@ void Bitmask(benchmark::State& state)
{
auto img = loader.texture(loader.SCENERY_PATH, "door-close"_s);
auto bitmask = anim_atlas::make_bitmask(img);
- anim_atlas::make_bitmask_(img, bitmask);
+ for (int i = 0; i < 3; i++)
+ anim_atlas::make_bitmask_(img, bitmask);
for (auto _ : state)
anim_atlas::make_bitmask_(img, bitmask);
}