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

Function BM_TiledBlit

bench/bitmap.cpp:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107BENCHMARK(BM_BlitFast);
108
109static void BM_TiledBlit(benchmark::State& state) {
110 Bitmap::SetFormat(format);
111 auto dest = Bitmap::Create(320, 240);
112 auto src = Bitmap::Create(16, 16);
113 auto rect = src->GetRect();
114 for (auto _: state) {
115 dest->TiledBlit(rect, *src, rect, opacity);
116 }
117}
118
119BENCHMARK(BM_TiledBlit);
120

Callers

nothing calls this directly

Calls 2

GetRectMethod · 0.80
TiledBlitMethod · 0.80

Tested by

no test coverage detected