ҵ v1.12AIŻĽMOD

      qTTTTTTTTTTTTTTTr
U       3DMGAMEϷ      U
qTTTTTT  http://www.3dMgame.com  TTTTTTr
UUhttp://bbs.3dmgame.com  UU
UUU            U
UtTTTTTTTTTTTTTTTsU
UU
UU
U վṩĸϷ߼£ֻоѧϰվʹ U
U ЩϷߣµһкеκΡ U
UU 
UU
UU
UU
UqrU
tTTȡ  3DMGAME http://www.3dmgame.com  TTs
ts 





Դ˵

ҵ v1.12AIŻĽMODɡDarkCowBuiltBrokenModdingdmodoomsiriusKolatraҪˣˢƵAI֪룬ڴʹ˹ܵ̽·ȵȣҪǧҪ,վṩҵAIŻĽMOD,ҪҲҪŶ

  

Դ飺



Current Features

ý˹ֱӽʵ

Config to disable AI Watch Closest Entity

Ĭ£ýΪfalseִκβΪtrueʱɾһΪentityaiwatch˹ܶΡ˹ܶδAIsʹãǵͷתʵ塣Ӿ⽫һЩֵ⡣ǣCPUͷʵʹá

By default the config is set to false and will not do anything. When changed to true it will remove an AI segment called EntityAIWatchClosest. This AI segment handles the coded AIs use to rotate their head towards a nearby entity.Visually this will cause a few odd issues. However, for the CPU this frees up a lot of usage caused by entities.

ýAIģòĬõ

Config to disable AI look random, config is not enabled by default

Ĭ£ýΪfalseִκβΪtrueʵ岻ʹáС˹ܴ롣߷ܡûκҪʱͼϼеʵ嶼ʹӾϿܻᵼʵͷת¶ע⡣

By default the config is set to false and will not do anything. Setting the config to true will cause entities to no longer use the 'look idle' AI code. This can improve performance for servers will large populations. As almost every entity on the map will use this when not doing anything important. Visually this can cause the entities head to not rotate sometimes but mostly goes unnoticed.

øЧİ汾滻EntityLookHelperĬ

Config to replace EntityLookHelper with a more efficient version, config is enabled by default

modҪԣԼCPUܣԽRAMĳɱʹMClook helper滻ΪԶ汾Զ汾洢һЩݣʹܹػλõĽǶȡVisualVMĽһЩԽʾAICPUʹʽ50%80%һ25˵ķ˵⵼57tpsӡ

This is the main feature of the mod and can greatly improve CPU performance at a small cost to RAM. How this works is MC's look helper code is replaced with a custom version. The custom version stores some data that makes it faster to get the angle for a location. Threw some testing with VisualVM result have shown a 50% to 80% decrease in CPU usage by the AI code. For a server with 25 people on constantly this resulted in a gain from 5 to 7 tps.

ƻص

Planned Features

˹ܵ̽·ߵĶ߳

Multithreading for AI nav pathfinder

ͽѵ

Mob spawning restrictions

ûнӽҵʱӾAI

Disable Visual AI code when not near players

֪

Reduce wondering distance

ӽԱʱ򣬼ٶԾĻ

Reduce wondering distance when not near players

Mobs raytraceĿƵ

Reduce how often Mobs raytrace targets

ÿRAM atan2ʹ

Config to control the amount of RAM atan2 cache uses

  

ʹ˵

ѹڵjarļƵϷĿ¼µModsļУȻϷMODݰ汾ѡװ1.7.10/1.8.9/1.12