| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| Planet landing lag bug https://mail.black-squirrel.com/viewtopic.php?f=44&t=20138 |
Page 1 of 1 |
| Author: | Singularity [ Thu Dec 20, 2007 10:18 pm ] |
| Post subject: | Planet landing lag bug |
When you land on a planet it causes all of the planets to go thru an update routine. Normally this is good, but in some games you can have dozens, hundreds or thousands of planets in a single sector. This causes the CPU to spike and the entire server lags. People tend to play more edits where planets are created with resources. So there are some scripts that create a bunch of planets, strip the resources and then blow and re-create the planets. If you have a few people running scripts like this it can result in the same lag, causing the entire server to crawl. Most of the time these planets are not colonized, so there's no need to update them as frequently (only update uninhabited worlds when a person lands or drops cols or changes something on a planet... perhaps?). |
|
| Author: | Promethius [ Thu Dec 20, 2007 11:24 pm ] |
| Post subject: | Re: Planet landing lag bug |
Singularity wrote: When you land on a planet it causes all of the planets to go thru an update routine. Normally this is good, but in some games you can have dozens, hundreds or thousands of planets in a single sector. This causes the CPU to spike and the entire server lags. People tend to play more edits where planets are created with resources. So there are some scripts that create a bunch of planets, strip the resources and then blow and re-create the planets. If you have a few people running scripts like this it can result in the same lag, causing the entire server to crawl. Most of the time these planets are not colonized, so there's no need to update them as frequently (only update uninhabited worlds when a person lands or drops cols or changes something on a planet... perhaps?). This bug has been used to "kill" a server in regard to performance. I won't cover how to do it, but have seen it. |
|
| Author: | John Pritchett [ Fri Dec 21, 2007 10:54 am ] |
| Post subject: | |
So when a player lands on one planet, every planet in the sector is updated? You said that it was good that this happens. Why would it matter if all of the other planets are being updated? Why not update only the planet the player is landing on? The goal with planet production is to only update it just-in-time, as someone is about to interact with it. So if you land on planet A, planet A should be updated, but planets B, C, D, etc, should not update. Would that improve this situation, and if that is a change in how the game currently behaves, would it create problems? |
|
| Author: | Singularity [ Fri Dec 21, 2007 6:00 pm ] |
| Post subject: | |
Why not update only the planet being landed on? Answer: Planet scanner results. But for uninhabited planets, well... yea, why bother? Also, why bother updating more than once every few seconds or a minute (provided nothing has been changed) unless someone is landing on the planet? It's not like planet scanner results are accurate to the Nth detail, an extra tiny portion of figs would not make any difference on an invasion decision... and that's even if they were noticeable at all. |
|
| Author: | John Pritchett [ Fri Dec 21, 2007 6:06 pm ] |
| Post subject: | |
Ok, so if the player has a planet scanner, then goes to land, it builds a list of planets with the latest data on the planet, therefore requiring an update. Ok, but that still seems like overkill. I will look at ways to limit the number of planets being updated in a burst, including your suggestion. |
|
| Author: | Muss [ Sat Dec 22, 2007 3:24 pm ] |
| Post subject: | |
even when using a space to abort the display.. the planets still update? When trying to land on a planet in a sector with 100's of planets.. and using an aborted display.. I still get heavy lag. |
|
| Author: | John Pritchett [ Sat Dec 22, 2007 3:41 pm ] |
| Post subject: | |
Ok, I'm sure I can improve this situation. |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|