Luanti 5.19.0-dev
Loading...
Searching...
No Matches
benchmark_map.cpp File Reference
#include "catch.h"
#include "dummygamedef.h"
#include "map.h"
#include "mapsector.h"
Include dependency graph for benchmark_map.cpp:

Macros

#define BENCH1(_count)

Functions

static void fillMap (TestMap &map, s16 n)
static int readBlocks (Map &map, s16 n)
static int readRandomBlocks (Map &map, s16 n)
static int readYColumn (Map &map, s16 n)
static int readNodes (Map &map, s16 n)
 TEST_CASE ("benchmark_map")

Macro Definition Documentation

◆ BENCH1

#define BENCH1 ( _count)

Referenced by TEST_CASE(), and TEST_CASE().

Function Documentation

◆ fillMap()

void fillMap ( TestMap & map,
s16 n )
static

References fillMap(), x, y, and z.

Referenced by fillMap().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readBlocks()

int readBlocks ( Map & map,
s16 n )
static

References Map::getBlockNoCreateNoEx(), readBlocks(), x, y, and z.

Referenced by readBlocks().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readNodes()

int readNodes ( Map & map,
s16 n )
static

References CONTENT_IGNORE, MapNode::getContent(), Map::getNode(), MAP_BLOCKSIZE, readNodes(), x, y, and z.

Referenced by readNodes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readRandomBlocks()

int readRandomBlocks ( Map & map,
s16 n )
static

References Map::getBlockNoCreateNoEx(), myrand_range(), and readRandomBlocks().

Referenced by readRandomBlocks().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readYColumn()

int readYColumn ( Map & map,
s16 n )
static

References Map::getBlockNoCreateNoEx(), readYColumn(), x, y, and z.

Referenced by readYColumn().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TEST_CASE()

TEST_CASE ( "benchmark_map" )

References BENCH1, and TEST_CASE().

Here is the call graph for this function: