MCPcopy Create free account
hub / github.com/EasyRPG/Player / BM_TiledBlitOffset

Function BM_TiledBlitOffset

bench/bitmap.cpp:121–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119BENCHMARK(BM_TiledBlit);
120
121static void BM_TiledBlitOffset(benchmark::State& state) {
122 Bitmap::SetFormat(format);
123 auto dest = Bitmap::Create(320, 240);
124 auto src = Bitmap::Create(64, 64);
125 auto rect = src->GetRect();
126 for (auto _: state) {
127 dest->TiledBlit(32, 32, Rect{32,32,16,16}, *src, rect, opacity);
128 }
129}
130
131BENCHMARK(BM_TiledBlitOffset);
132

Callers

nothing calls this directly

Calls 2

GetRectMethod · 0.80
TiledBlitMethod · 0.80

Tested by

no test coverage detected