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

Function BM_Render

bench/font.cpp:43–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41BENCHMARK(BM_vRender);
42
43static void BM_Render(benchmark::State& state) {
44 Bitmap::SetFormat(format_R8G8B8A8_a().format());
45 auto surface = Bitmap::Create(width, height);
46 auto system = Cache::SystemOrBlack();
47
48 auto font = Font::Default();
49 for (auto _: state) {
50 font->Render(*surface, 0, 0, *system, 0, symbol);
51 }
52}
53
54BENCHMARK(BM_Render);
55

Callers

nothing calls this directly

Calls 2

formatMethod · 0.80
RenderMethod · 0.80

Tested by

no test coverage detected