Luanti 5.15.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().

Function Documentation

◆ fillMap()

static void fillMap ( TestMap & map,
s16 n )
static

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

+ Here is the call graph for this function:

◆ readBlocks()

static int readBlocks ( Map & map,
s16 n )
static

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

+ Here is the call graph for this function:

◆ readNodes()

static int readNodes ( Map & map,
s16 n )
static

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

+ Here is the call graph for this function:

◆ readRandomBlocks()

static int readRandomBlocks ( Map & map,
s16 n )
static

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

+ Here is the call graph for this function:

◆ readYColumn()

static int readYColumn ( Map & map,
s16 n )
static

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

+ Here is the call graph for this function:

◆ TEST_CASE()

TEST_CASE ( "benchmark_map" )

References BENCH1.