summaryrefslogtreecommitdiff
path: root/common/map.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2023-02-23 11:53:10 +0000
committerubq323 <ubq323@ubq323.website>2023-02-25 01:51:36 +0000
commit41a7a40ecf71613c6cb3f7823491c45d9c9c63e0 (patch)
tree737c9955ef433642d3fcfc45bd3ce8c0bb3041fd /common/map.lua
parent447f46c1710f507622306a338cc8c82b1ce3aa5c (diff)
implement new rendering system using gpu instancing
this has extremely better performance on my machine also, player is circle now
Diffstat (limited to 'common/map.lua')
-rw-r--r--common/map.lua4
1 files changed, 3 insertions, 1 deletions
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