07-04-2013, 06:09 PM
Being more and more specific.
I read that :
- mobs spawn close to players
- mobs far from players doesn't move
- mobs really far from player have chance to despawn
- mobs really really far from player automatically despawn
I suggest that it would be more accurate to manage thoses 4 actions in a Row.
Right now :
- Mobs Tick() are called from Chunks
- Mob spawn is called from World.
- I'm not sure if Mob despawn is called
Applying the above rules would induce two or three different Player-to-mob distance calculation is a single tick.
I read that :
- mobs spawn close to players
- mobs far from players doesn't move
- mobs really far from player have chance to despawn
- mobs really really far from player automatically despawn
I suggest that it would be more accurate to manage thoses 4 actions in a Row.
Right now :
- Mobs Tick() are called from Chunks
- Mob spawn is called from World.
- I'm not sure if Mob despawn is called
Applying the above rules would induce two or three different Player-to-mob distance calculation is a single tick.