
Flux particles buildup causing lag
tomascryogen opened this issue ยท 2 comments
Hello.
Very nice mod. Thank you for your work.
When not near, particles from the Flux Emitters to the machines queue up until viewed and then render all at once.
Works as expected when near machines.
Steps to reproduce the behavior:
- Set up Flux Emitters and machines
- Have items being processed
- Go to other floors of the base or other rooms
- Frame rate decreasing over time depending on nr of emitters
- Go back to the processing room
- Single large burst of particle streams when entering the room and looking at emitters and machines
Particles should not be stored and rendered from operations when the player is not looking at or near machines.
If applicable, add screenshots to help explain your problem.
Burst:
Normal operation:
- Theurgy Version: 1.56.0
- OS: Windows 11
- Minecraft Version: 1.21.1
- Modpack Link and Version, or list of mods: ATM10
Not sure if this was happening with the previous versions, as I only made the large setup recently.
Thank you for reporting this, I noticed something off about the particle effects sometimes, but never had it to this extent and made the connection. I will look into what is going wrong there
Hmm not sure how this is caused as I am already using the limit to only send the message to tracking players.
I think this might be due to another mod (or vanilla/neoforge performance optimization) not ticking entities out of view - which makes sense usually, but now causes the entities to all "wait" until they are being sent.
I will add a small change to discard projectiles too far away from the player. This will probably improve but not fix the situation.
Please let me know after the next update if the issue persists to a degree that causes FPS drops, because there is one more optimization I can do, but it is a bit more heavy handed