texmex wrote:What metric is the profiler visualizing?
texmex wrote:Which version of item_drop do you use?
bosapara wrote:News:
_______________________
Day of optimisation with profiler tool:
PS "item_drop" mod is switched off
Diagram before optimisation
texmex wrote:No, what metric is shown? RAM usage? Lag?
Anyway, I really recommend minetest-mods/item_drop which we thoroughly optimized (especially for servers, with the item flight setting off) and gave more features.
texmex wrote:Is the code for those blocks up somewhere? I want to take a look at that particle code…
minetest.register_abm({
nodenames = {"gmd:legendary_gold"}, --makes small particles emanate from the beginning of a beam
interval = 1,
chance = 2,
action = function(pos, node)
minetest.add_particlespawner( --I actually borrowed this code from the nether mod
12, --amount
4, --time
{x=pos.x-0.95, y=pos.y-0.95, z=pos.z-0.95},
{x=pos.x+0.95, y=pos.y+0.95, z=pos.z+0.95},
{x=-1.2, y=-1.2, z=-1.2},
{x=1.2, y=1.2, z=1.2},
{x=0,y=0,z=0},
{x=0,y=0,z=0},
0.5,
1,
1,
2,
false, -
"purpleparticle.png"
)
end,
})
bosapara wrote:texmex wrote:Is the code for those blocks up somewhere? I want to take a look at that particle code…
this, from beacon mod
- Code: Select all
minetest.register_abm({
nodenames = {"gmd:legendary_gold"}, --makes small particles emanate from the beginning of a beam
interval = 1,
chance = 2,
action = function(pos, node)
minetest.add_particlespawner( --I actually borrowed this code from the nether mod
12, --amount
4, --time
{x=pos.x-0.95, y=pos.y-0.95, z=pos.z-0.95},
{x=pos.x+0.95, y=pos.y+0.95, z=pos.z+0.95},
{x=-1.2, y=-1.2, z=-1.2},
{x=1.2, y=1.2, z=1.2},
{x=0,y=0,z=0},
{x=0,y=0,z=0},
0.5,
1,
1,
2,
false, -
"purpleparticle.png"
)
end,
})
texmex wrote:bosapara wrote:texmex wrote:Is the code for those blocks up somewhere? I want to take a look at that particle code…
this, from beacon mod
- Code: Select all
minetest.register_abm({
nodenames = {"gmd:legendary_gold"}, --makes small particles emanate from the beginning of a beam
interval = 1,
chance = 2,
action = function(pos, node)
minetest.add_particlespawner( --I actually borrowed this code from the nether mod
12, --amount
4, --time
{x=pos.x-0.95, y=pos.y-0.95, z=pos.z-0.95},
{x=pos.x+0.95, y=pos.y+0.95, z=pos.z+0.95},
{x=-1.2, y=-1.2, z=-1.2},
{x=1.2, y=1.2, z=1.2},
{x=0,y=0,z=0},
{x=0,y=0,z=0},
0.5,
1,
1,
2,
false, -
"purpleparticle.png"
)
end,
})
ABMs sounds expensive!
bosapara wrote:i checked with profiler, nothing 'expensive' about 0.4%
texmex wrote:bosapara wrote:i checked with profiler, nothing 'expensive' about 0.4%
Oh, I figured that it gets more computationally expensive when many blocks are placed but perhaps I'm wrong. :)
bosapara wrote:
this, from beacon mod
- Code: Select all
minetest.register_abm({
nodenames = {"gmd:legendary_gold"}, --makes small particles emanate from the beginning of a beam
interval = 1,
chance = 2,
action = function(pos, node)
minetest.add_particlespawner( --I actually borrowed this code from the nether mod
12, --amount
4, --time
{x=pos.x-0.95, y=pos.y-0.95, z=pos.z-0.95},
{x=pos.x+0.95, y=pos.y+0.95, z=pos.z+0.95},
{x=-1.2, y=-1.2, z=-1.2},
{x=1.2, y=1.2, z=1.2},
{x=0,y=0,z=0},
{x=0,y=0,z=0},
0.5,
1,
1,
2,
false, -
"purpleparticle.png"
)
end,
})
ManElevation wrote:nice! take a look at the space textures in my mod: https://forum.minetest.net/viewtopic.php?f=9&t=20462
Users browsing this forum: Google [Bot] and 3 guests