What are you searching for?

puzzle-piece

Martensite entity tick skiper

Skip entity tick process depending on the distance to player

download 1.1K Downloads · favorite 6 Followers · Updated 6 months ago
Forge Game-mechanics Neoforge Optimization Utility 1.20.1 1.20.2 1.20.3 1.21 1.21.1 +7 more

Versions

inventory_2
Martensite entity tick skiper 1.0.4

1.0.4 · 6 months ago · 60.72 KB

Release download
Neoforge 1.21 1.21.1 1.21.2
inventory_2
Martensite entity tick skiper 1.0.3

1.0.3 · 8 months ago · 60.15 KB

Release download
Neoforge 1.21 1.21.1 1.21.2
inventory_2
Martensite entity tick skiper 1.0.1

1.0.1 · 8 months ago · 55.57 KB

Release download
Neoforge 1.21 1.21.1 1.21.2
inventory_2
Martensite entity tick skiper 1.0.0

1.0.0 · 9 months ago · 49.43 KB

Release download
Neoforge 1.21 1.21.1 1.21.2
inventory_2
Martensite entity tick skiper 1.0.beta.3

1.0.beta.3 · 9 months ago · 48.36 KB

Neoforge 1.21 1.21.1 1.21.2

About

As a datapack maker, I like to enhance Mob AI to make game more difficult. But use command to control mob AI involve many detection and scoreboard recoding and as game become more difficult, mob that stack together will kill player in second. So I make a mod to deal with these problem

To deal with the problem. First is to improve the performance by skip entity tick when player is far away, next is to remove entity when other entity nearby unloaded.

Feature

  1. skip entity tick by a calculated chance (default on)
  2. delete entity in group (default off)
  3. regist chunk to prevent 1. to work on farm
  4. change minimal chance (0.1) and the radius (24) that entity start to be skip in config
  5. disable death animation (default on)
  6. cramp xp orb in a aggresive way (default on)

Caution

Remember to register chunks where your machine and farm located or it may break the farm that require the entity and redstone running at the same speed and decrease the efficiency of entity resources farm such as wool farm and the farm that assemble mob like most of the mob spawner do. Skip tick means no calculation will be operated on entity, and thus they won't even move.

Clear entity in group may clear some entity that usually should be in certain structure like Boss from other mod.(vanilla ones like evoker has been avoided)

The things that will be invole in the future

  • Advance entity detection to avoid unwanted entity remove by group remove
  • Group remove backlist system
  • Fabric version (postponed due to development plugin error)

Effect Showcase

450 pigs test

13 blocks away

Open : 12fps / 130~140ms

Close : 12fps / 130~140ms

24 blocks away

Open : 40fps / 120ms

Close : 40fps / 108ms

when Skip is on When Skip is off When within 24 blocks, they are almost the same.

40 blocks away

Open : 40fps / 95ms When Skip is on Close : 40fps / 108ms When Skip is off

60 blocks away

Open : 60fps / 85ms When Skip is on Close : 60fps / 120ms When Skip is off TPS drops since the higher fps requirement

80 blocks away

Open : 60fps / 42ms When Skip is on Close : 58fps / 75ms When Skip is off

100 blocks away

Open : 70fps / 32ms When Skip is on Close : 60fps / 75ms When Skip is off

open_in_new View on Modrinth
Compatibility
Client: Unsupported Server: Required
gavel GPL-3.0-or-later

Conversation

What are your thoughts?

Related projects

Optimization
Sodium
Sodium

by jellysquid3

The fastest and most compatible rendering optimization mod for Minecraft. Now available for both NeoForge and Fabric!

download 118.7M
favorite 32,820
Decoration Optimization
Iris Shaders
Iris Shaders

by coderbot

A modern shader pack loader for Minecraft intended to be compatible with existing OptiFine shader packs

download 90.8M
favorite 23,800
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.7M
favorite 12,724
Optimization
Entity Culling
Entity Culling

by tr7zw

Using async path-tracing to hide Block-/Entities that are not visible

download 84.3M
favorite 13,770
lock Cookie consent

SkinMC uses cookies to provide functionality and features.