Adaptive Performance Tweaks: Core

Adaptive Performance Tweaks: Core

8M Downloads

Slight increase in Entity TPS usage after update?

Reshy opened this issue ยท 4 comments

commented

Describe the bug
After updating, I noticed most entities have between 5-10 us/t higher when using Observable. Seems most noticeable with animals (tested specifically with chickens). Could be due to other factors, but I tried to minimize those as much as I could, reusing the same world and testing the same mobs. Some of the TPS is from other mods, but the only thing that changed between the two screen shots was the two updates.

To Reproduce
Steps to reproduce the behavior:

  1. Place mobs as below using
  2. Run Observable in 30 sec mode.

Expected behavior
The update shouldn't be having a performance impact such as this.

Screenshots
2023-05-29_02 33 47
2023-05-29_02 11 01

Debugging
Didn't have this setup for the test, wasn't aware of it.

commented

Thanks for the report. In the last update I fixed an issue were mobs in the nether where over optimized.
With the fix it's expected that you get about 25% more vanilla nether mobs than before, which could have this impact, but only if the nether dimension is loaded or if you have nether mobs in the overworld.

I will run some performance profile to see if there is anything I overlooked, but it would be great if you could use Spark or something like this to get a clear report about the usage of the single processes like: https://spark.lucko.me/H9Z9rLddg7

You just need to run /spark profile start, moving around the world for 1-5 minute or so and than using /spark profile stop to get the final report. (Don't use /sparkc because this is for the client side)

commented

I can try that, though I think the results may vary since hostile mobs aren't saved.

commented

Here's what I got, but I dunno how conclusive it is:

Before:
https://spark.lucko.me/aAlQe9bq88
Before Update

After:
https://spark.lucko.
After Update
me/h1QC8Qimp9

commented

Thanks for the details. I just added some smaller performance updates for some parts which show up on your profile.
Unfortunately besides of this I see not a lot of performance different for the core and items module your are using.
Because you are not using the "spawn" module, most of the changes from last update are not affecting you at all.