mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
optimize a bit
This commit is contained in:
parent
5240fe6226
commit
bd4a5ef7fc
3 changed files with 46 additions and 51 deletions
|
|
@ -50,11 +50,9 @@ class ChunksRenderer {
|
|||
std::unordered_map<glm::ivec2, bool> inwork;
|
||||
std::vector<ChunksSortEntry> indices;
|
||||
util::ThreadPool<std::shared_ptr<Chunk>, RendererResult> threadPool;
|
||||
|
||||
bool drawChunk(
|
||||
const Mesh* retrieveChunk(
|
||||
size_t index, const Camera& camera, Shader& shader, bool culling
|
||||
);
|
||||
std::unique_ptr<Mesh> sortedMesh;
|
||||
public:
|
||||
ChunksRenderer(
|
||||
const Level* level,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue