Drehung der Kristalle gefixt
This commit is contained in:
parent
dfcf870d1b
commit
df1276fb86
3 changed files with 49 additions and 34 deletions
|
@ -345,9 +345,9 @@ local function build_lights_after_generated(minp,maxp,sources)
|
|||
cozylights:setVoxelManipData(vm,data,param2data,true)
|
||||
agent_total = agent_total + mf((os.clock() - t) * 1000)
|
||||
agent_count = agent_count + 1
|
||||
print("Av build after generated time: "..
|
||||
mf(agent_total/agent_count).." ms. Sample of: "..agent_count..". Areas left: "..#cozylights.area_queue
|
||||
)
|
||||
--print("Av build after generated time: "..
|
||||
-- mf(agent_total/agent_count).." ms. Sample of: "..agent_count..". Areas left: "..#cozylights.area_queue
|
||||
--)
|
||||
end
|
||||
|
||||
--idk, size should be smarter than a constant
|
||||
|
@ -627,7 +627,7 @@ minetest.register_on_generated(function(minp, maxp)
|
|||
local light_sources = minetest.find_nodes_in_area(minp,maxp,cozylights.source_nodes)
|
||||
if #light_sources == 0 then return end
|
||||
if #light_sources > 1000 then
|
||||
print("Error: too many light sources around "..cozylights:dump(pos).." Report this to Cozy Lights dev")
|
||||
--print("Error: too many light sources around "..cozylights:dump(pos).." Report this to Cozy Lights dev")
|
||||
return
|
||||
end
|
||||
--local minp_exp,maxp_exp,_,data,_,a = cozylights:getVoxelManipData(pos, size)
|
||||
|
|
|
@ -76,7 +76,7 @@ function cozylights:draw_node_light(pos,cozy_item,vm,a,data,param2data,fix_edges
|
|||
end
|
||||
gent_total = gent_total + mf((os.clock() - t) * 1000)
|
||||
gent_count = gent_count + 1
|
||||
print("Av illum time " .. mf(gent_total/gent_count) .. " ms. Sample of: "..gent_count)
|
||||
--print("Av illum time " .. mf(gent_total/gent_count) .. " ms. Sample of: "..gent_count)
|
||||
end
|
||||
|
||||
-- handle_async?
|
||||
|
@ -85,7 +85,7 @@ function cozylights:rebuild_light()
|
|||
if #single_light_queue == 0 then
|
||||
return
|
||||
end
|
||||
print("#single_light_queue is: "..#single_light_queue)
|
||||
--print("#single_light_queue is: "..#single_light_queue)
|
||||
cozylights:draw_node_light(single_light_queue[1].pos, single_light_queue[1].cozy_item)
|
||||
table.remove(single_light_queue, 1)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue