From 41a7a40ecf71613c6cb3f7823491c45d9c9c63e0 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 23 Feb 2023 11:53:10 +0000 Subject: implement new rendering system using gpu instancing this has extremely better performance on my machine also, player is circle now --- common/map.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/map.lua') diff --git a/common/map.lua b/common/map.lua index 1028982..67e2834 100644 --- a/common/map.lua +++ b/common/map.lua @@ -8,8 +8,10 @@ -- to test whether a chunk needs to be loaded you do if map:chunk(cp) == nil then ... end. -- it will probably also do things relating to entities and multiblock things +-- note that the Map never creates any Chunks itself, which means it should be agnostic +-- to whatever actual Chunk class is being used (ChunkC or ChunkS or whatever) + local class = require"common.class" -local chunk = require"common.chunk" local coords = require"common.coords" local CHUNK_SIZE = require"common.constants".CHUNK_SIZE -- cgit v1.2.3