NuclearCraft icon indicating copy to clipboard operation
NuclearCraft copied to clipboard

Small but notable lag with enabled Radiation

Open Krutoy242 opened this issue 1 year ago • 0 comments

Overhauled, radiation_enabled=true.

I'm maintaining E2E-E server. I found that NC:O causing about 2% of TPS lag.

image

By looking through source code, i found that most heavy calls is loadedChunks.toArray and transferRadiationFromProviderToChunkBuffer.

  • How can I improve TPS on my server without completely disabling radiation? My radiation_world_chunks_per_tick set to 5, but seems like loadedChunks.toArray would constantly consume same amount of CPU, no matter of config.
  • How I could optimize transferRadiationFromProviderToChunkBuffer or make it not called at all? I cant find a config for disabling TEs to contribute chunk radiation.

Profile: spark.lucko.me/dgYOuB47ke

Logs: debug.zip

Krutoy242 avatar Sep 28 '23 19:09 Krutoy242