doc
This commit is contained in:
parent
bbc300f540
commit
56a5dff83d
@ -50,7 +50,6 @@ function M.init()
|
|||||||
local node_update_queue = buildat.SpatialUpdateQueue()
|
local node_update_queue = buildat.SpatialUpdateQueue()
|
||||||
|
|
||||||
local function queue_initial_node_update(node)
|
local function queue_initial_node_update(node)
|
||||||
-- TODO: node:GetWorldPosition() is not at center of node
|
|
||||||
node_update_queue:put(node:GetWorldPosition(),
|
node_update_queue:put(node:GetWorldPosition(),
|
||||||
INITIAL_GEOMETRY_NEAR_WEIGHT, camera_far_clip * 1.2,
|
INITIAL_GEOMETRY_NEAR_WEIGHT, camera_far_clip * 1.2,
|
||||||
nil, nil, {
|
nil, nil, {
|
||||||
@ -58,7 +57,6 @@ function M.init()
|
|||||||
current_lod = 0,
|
current_lod = 0,
|
||||||
node_id = node:GetID(),
|
node_id = node:GetID(),
|
||||||
})
|
})
|
||||||
-- TODO: node:GetWorldPosition() is not at center of node
|
|
||||||
node_update_queue:put(node:GetWorldPosition(),
|
node_update_queue:put(node:GetWorldPosition(),
|
||||||
INITIAL_PHYSICS_NEAR_WEIGHT, PHYSICS_DISTANCE, nil, nil, {
|
INITIAL_PHYSICS_NEAR_WEIGHT, PHYSICS_DISTANCE, nil, nil, {
|
||||||
type = "physics",
|
type = "physics",
|
||||||
@ -99,7 +97,6 @@ function M.init()
|
|||||||
local data = node:GetVar("buildat_voxel_data"):GetBuffer()
|
local data = node:GetVar("buildat_voxel_data"):GetBuffer()
|
||||||
--local registry_name = node:GetVar("buildat_voxel_registry_name"):GetBuffer()
|
--local registry_name = node:GetVar("buildat_voxel_registry_name"):GetBuffer()
|
||||||
|
|
||||||
-- TODO: node:GetWorldPosition() is not at center of node
|
|
||||||
local node_p = node:GetWorldPosition()
|
local node_p = node:GetWorldPosition()
|
||||||
local d = (node_p - camera_p):Length()
|
local d = (node_p - camera_p):Length()
|
||||||
local lod_fraction = d / LOD_DISTANCE
|
local lod_fraction = d / LOD_DISTANCE
|
||||||
|
@ -54,3 +54,6 @@ Buildat TODO
|
|||||||
woxelworld:update and ThreadPool::run_post() will not be run on the same frame
|
woxelworld:update and ThreadPool::run_post() will not be run on the same frame
|
||||||
- Pre (lod) geometry can take up to 2500us, and post can take 7200us, which
|
- Pre (lod) geometry can take up to 2500us, and post can take 7200us, which
|
||||||
means this will have a visible effect.
|
means this will have a visible effect.
|
||||||
|
- Multiple replicated scens and voxelworlds, with threading, for servers with a
|
||||||
|
lobby and multiple worlds
|
||||||
|
- Don't emit all world generation events at once
|
||||||
|
Loading…
x
Reference in New Issue
Block a user