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

Function BM_BlitFast

bench/bitmap.cpp:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95BENCHMARK(BM_Blit);
96
97static void BM_BlitFast(benchmark::State& state) {
98 Bitmap::SetFormat(format);
99 auto dest = Bitmap::Create(320, 240);
100 auto src = Bitmap::Create(320, 240);
101 auto rect = src->GetRect();
102 for (auto _: state) {
103 dest->BlitFast(0, 0, *src, rect, opacity);
104 }
105}
106
107BENCHMARK(BM_BlitFast);
108

Callers

nothing calls this directly

Calls 2

GetRectMethod · 0.80
BlitFastMethod · 0.80

Tested by

no test coverage detected