This commit is contained in:
MihailRis 2025-12-29 21:39:26 +03:00
parent 88544183d0
commit 99757103fc
2 changed files with 1 additions and 5 deletions

View file

@ -120,11 +120,10 @@ std::shared_ptr<VoxelsRenderVolume> ChunksRenderer::prepareVoxelsVolume(
return voxelsBuffer; return voxelsBuffer;
} }
#include "util/timeutil.hpp"
const Mesh<ChunkVertex>* ChunksRenderer::render( const Mesh<ChunkVertex>* ChunksRenderer::render(
const std::shared_ptr<Chunk>& chunk, bool important, bool lowPriority const std::shared_ptr<Chunk>& chunk, bool important, bool lowPriority
) { ) {
important = true;
glm::ivec2 key(chunk->x, chunk->z); glm::ivec2 key(chunk->x, chunk->z);
chunk->flags.modified = false; chunk->flags.modified = false;
if (important) { if (important) {

View file

@ -369,8 +369,6 @@ static inline light_t apply_backlight(light_t light) {
); );
} }
#include "util/timeutil.hpp"
// ugly // ugly
static inline void sample_chunk( static inline void sample_chunk(
const decltype(ContentIndices::blocks)& defs, const decltype(ContentIndices::blocks)& defs,
@ -427,7 +425,6 @@ void Chunks::getVoxels(
bool backlight, bool backlight,
int top int top
) const { ) const {
timeutil::ScopeLogTimer log(111);
int h = std::min<int>(size.y, top); int h = std::min<int>(size.y, top);
int scx = floordiv<CHUNK_W>(pos.x); int scx = floordiv<CHUNK_W>(pos.x);