VolmitSoftware / React

Smart Server Performance
https://volmit.com
GNU General Public License v3.0
95 stars 52 forks source link

Optimize WorldMonitor #507

Closed DavidRockin closed 5 years ago

DavidRockin commented 5 years ago

Just some quick basic profiling, I noticed the WorldMonitor had the largest profile time. The GraphController and Papyrus API was the highest for a short-time (makes sense to render a map in realtime, will need to investigate.)

However there are 4 samples for WorldMonitor, and it appears to be called twice. TPS and Super sampler. There are three entity samples than sample ALL entities, and then LIVING entities, and then dropped items. I'm wondering if I could merge these into one class it'll improve performance. Perhaps I could thread it?

Version Tested Paper 1.14.3 React Version 1.612-beta2

image image