mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
cleanup
This commit is contained in:
parent
88544183d0
commit
99757103fc
2 changed files with 1 additions and 5 deletions
|
|
@ -120,11 +120,10 @@ std::shared_ptr<VoxelsRenderVolume> ChunksRenderer::prepareVoxelsVolume(
|
|||
return voxelsBuffer;
|
||||
}
|
||||
|
||||
#include "util/timeutil.hpp"
|
||||
|
||||
const Mesh<ChunkVertex>* ChunksRenderer::render(
|
||||
const std::shared_ptr<Chunk>& chunk, bool important, bool lowPriority
|
||||
) {
|
||||
important = true;
|
||||
glm::ivec2 key(chunk->x, chunk->z);
|
||||
chunk->flags.modified = false;
|
||||
if (important) {
|
||||
|
|
|
|||
|
|
@ -369,8 +369,6 @@ static inline light_t apply_backlight(light_t light) {
|
|||
);
|
||||
}
|
||||
|
||||
#include "util/timeutil.hpp"
|
||||
|
||||
// ugly
|
||||
static inline void sample_chunk(
|
||||
const decltype(ContentIndices::blocks)& defs,
|
||||
|
|
@ -427,7 +425,6 @@ void Chunks::getVoxels(
|
|||
bool backlight,
|
||||
int top
|
||||
) const {
|
||||
timeutil::ScopeLogTimer log(111);
|
||||
int h = std::min<int>(size.y, top);
|
||||
|
||||
int scx = floordiv<CHUNK_W>(pos.x);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue