ServerCore

ServerCore

384k Downloads

Activation range not applied on item entities

Kirisoup opened this issue ยท 8 comments

commented

Describe the bug
I don't know if this is intended or not, but items seems to not be affected by misc activation range (and other categories). I believe by not ticking items outside the range would dramatically increase performance in some scenarios? Providing a unique category just for items entities would also be lovely (like how zombies are in an unique category separated from monster)

Edit: Ok this should be a bug. Gonna test and see what is causing it.

Reproduce

Expected behavior

Versions
ServerCore: 1.3.9
Minecraft: 1.20.1 (Quilt loader 0.23.0)

Mod incompatibilities

commented

Its very possible this was caused by c106bb2 as items were sometimes keeping horizontal movement in many decimal numbers.

My original test on this was with items spawned in through commands so they probably never had any horizontal movement to begin with.

commented

They should be affected by it. There are some exclusions though, like when the item entity is moving around it gets temporary immunity to it, preventing tons of item entities getting stuck in item sorters (especially in the nether) as there's no water.

If I might ask, what makes you think they aren't affected by it?

commented

They should be affected by it. There are some exclusions though, like when the item entity is moving around it gets temporary immunity to it, preventing tons of item entities getting stuck in item sorters (especially in the nether) as there's no water.

If I might ask, what makes you think they aren't affected by it?

Oh ok, so they won't be effected while moving.

I simply made a command block teleports an item above itself repeatedly, alongside a similar setup but with a minecart, then moved away, the minecart then stopped in midair while the item is still jumping

commented

But I also tested by summoning like a few hundreds of item entities to an extent that they have an obvious effect on server's mspt, and moved away. There was nearly no change at all with the mspt, untill the items moved out of the simulation distance.

commented

Are items supposed to somehow still be so performance impactful even if not ticking? If not, I'll try to test again with a clean install

commented

I would recommend testing it with Spark to see what's causing the lag.

commented

I've just tested this myself with 1562 item entities. Inside activation range it took ~43mspt, outside ~6.4ms.

commented

I've just tested this myself with 1562 item entities. Inside activation range it took ~43mspt, outside ~6.4ms.

Then it should likely be a compatibility issue on my side I guess.

I'll do some more tests when I'm back home