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

Function make

bench/variables.cpp:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5constexpr int max_vars = 1024; // Keep this a power of 2 so no expensive modulus instructions
6
7static Game_Variables make(int size = max_vars) {
8 lcf::Data::variables.resize(size);
9 Game_Variables variables(Game_Variables::min_2k3, Game_Variables::max_2k3);
10 variables.SetRange(1, size, 1);
11 return variables;
12}
13
14template <typename F>
15static void BM_VariableOp(benchmark::State& state, F&& op) {

Callers 1

BM_VariableOpFunction · 0.70

Calls 1

SetRangeMethod · 0.45

Tested by

no test coverage detected