27-03-2009, 06:07 PM
In a freshly downloaded MS4 the map respawns even when players on are the map.
Map Respawn
|
27-03-2009, 06:07 PM
In a freshly downloaded MS4 the map respawns even when players on are the map.
27-03-2009, 06:10 PM
Anthony Wrote:In a freshly downloaded MS4 the map respawns even when players on are the map. Yupp. Well, the items do. I dunno about the rest.
27-03-2009, 06:15 PM
Private Sub UpdateMapSpawnItems()
Find: Code: ' Make sure no one is on the map when it respawns Change it to: Code: ' Make sure no one is on the map when it respawns Fixed.
27-03-2009, 06:31 PM
It would be better to just make PlayersOnMap a boolean.
(boolean is faster than byte)
27-03-2009, 06:57 PM
when can a boolon be used anywhere a byte can or in certain instances? ive nvr used it before
27-03-2009, 07:02 PM
Not really. A byte is a variable with a value between 0 and 255, (256 total)
A boolean is a variable with a true or false value Public PlayersOnMap as Boolean Usage: Toggle - PlayersOnMap = True or PlayersOnMap = False Check - If PlayersOnMap = True Then or If PlayersOnMap = False Then
27-03-2009, 07:33 PM
ahh i get it
27-03-2009, 07:39 PM
Most of the checks we do are If Byte = 1 Or Byte = 0...those need to be Boolean = True or Boolean = False.
There's a small downside, Booleans take more memory than Bytes. Not that much more, but it's still considered a down side. Speed over memory usage.
27-03-2009, 07:42 PM
GIAKEN Wrote:Most of the checks we do are If Byte = 1 Or Byte = 0...those need to be Boolean = True or Boolean = False. Takes two bytes, I believe.
29-03-2009, 07:55 PM
Its such a minor difference (in speed, and memory) does it really matter?
30-03-2009, 12:26 AM
Yeah any loss is still a loss. If I lose 2$ instead of 1$...oh it's not that much of a loss, but still that's 50%...
You're looking at it like you're just fucking lazy. Any optimization is better, no matter 10 milliseconds faster or 1000 milliseconds faster is something that should be done.
30-03-2009, 12:50 AM
GIAKEN Wrote:Yeah any loss is still a loss. If I lose 2$ instead of 1$...oh it's not that much of a loss, but still that's 50%...Wouldn't that be a 100% loss?
30-03-2009, 01:00 AM
no...
2$ = 100% -1 1$ = 50% aka: 1$ is 1/2 of 2$, and 50% is 1/2 of 100%
30-03-2009, 01:23 AM
but if your looking at it from the small point of view wouldnt it be 100% loss
30-03-2009, 01:24 AM
Technically, losing $1 would be a 100% loss. Losing $2 would be a 200% loss.
Since those are the only variants involved.
30-03-2009, 01:25 AM
Who cares? The point is any optimization is good.
30-03-2009, 01:25 AM
Doomy Wrote:but if your looking at it from the small point of view wouldnt it be 100% lossEdit: Nvm, someone delete this post.
30-03-2009, 01:26 AM
GIAKEN Wrote:Who cares? The point is any optimization is good. We have to take this thread off topic. It's the MS way. Quit trying to make us think like programmers, damnit! ![]() |
« Next Oldest | Next Newest »
|