mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 15:01: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;
|
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) {
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue