Closed WoutProvost closed 1 year ago
Will be implemented with the following two requirements in mind:
Some things I considered but decided not to implement. The reason for this is that the library is already occupying about 160MB. Using the weapon and vehicle categories below, this would bump it to about 200MB:
x = MAX_PLAYER independent fields
y = MAX_PLAYER dependent fields (except for HEARING fields)
z = HEARING fields (except for WEAPON and VEHICLE fields)
w = WEAPON fields
v = VEHICLE fields
MAX_PLAYERS = 1000
MAX_NPCS = MAX_PLAYERS = 1000
CELL_SIZE = Pawn uses 4 Bytes
memory = MAX_NPCS * (x + y * MAX_PLAYERS + z * MAX_PLAYERS + w * MAX_PLAYERS + v * MAX_PLAYERS) * CELL_SIZE
memory = 1000 * (5 + 33 * 1000 + 5 * 1000 + 6 * 1000 + 7 * 1000) * 4 Bytes
memory = 204.02 MB