Launching Fireworks [MC1253] wirelessly in unloaded chunks causes backup and lag.
LadyCailinBot opened this issue ยท 11 comments
CRAFTBOOK-2425 - Reported by MaceMadunusus
For some reason I cannot change the project to craftbook, if a developer could change that for me that would be great.
Recently for the opening of our server we tried to create a set of firework shows that would go off on a set interval across our main city. In doing testing for it a lot of the chunks were unloaded while testing the firing. This caused thousands of fireworks to still be spawned but not actually start their ascent. These fireworks were only released again when someone came in range which also caused huge amounts of lag.
If there is any way to detect whether a firework IC is in a unloaded vs loaded chunk that would be great. It would allow for those large firework displays for events to be run, but not create a backlog if some sections are not loaded.
Comment by MaceMadunusus
Yeah, that would seem like a possibility. I had a repeater or so of delay, I think at 4 ticks.
Thanks for your hard work!
Comment by MaceMadunusus
Haha, that wouldn't surprise me with the way mojang codes things :P
Comment by me4502
Yeah, when entities are a certain distance away from players, they don't work.
Comment by MaceMadunusus
Added the .fwk for the show so that you can see they are all launched from roughly one position, and that multiple ICs are used to create the show.
Comment by damadmax
Would it help to keep the chunks in the city loaded? see http://wiki.sk89q.com/wiki/CraftBook/Chunk_Anchors
Comment by me4502
You could keep the chunks loaded.. But IC's can not function when a chunk is unloaded, so this isn't technically possible unless they had already launched before unloading, in which case it's out of out control.., unless your using a recent dev build and have KeepIC'sLoaded enabled.
Comment by MaceMadunusus
I was trying to stay away from chunk anchors just to keep the ram usage down, but its something we could do.
We are using a recommended build, not a dev build currently. That is weird though, I was the only person on the server while testing it out with a server render distance at 7. Those chunks shouldn't have been loaded but I am almost positive they were firing. The moment I came back to the other side of the city they would all fire at once.
Ill see if I can look into it more.
Comment by me4502
Hmm.. Well it isn't possible for an IC to do anything after being unloaded, especially as it requires the sign and that's gone.