SI The Joker, on 25 February 2012 - 01:00 PM, said:
How many steps would a mech take in a 20 minute game? 500? 1,000? Let's use 750.. an in the middle value
48 x 750 = 36,000 footprints to be laid and tracked by the game.
That's alot 'O footprints!
thats some nice solid scary numbers you have there
however, programers realized how scary things like this get alot time ago so they made a fix for us
its called instancing
it works like this
1 mech = 2 feet
2 feet = identical foot print = 1 texture
texture is loaded into memory 1 time and referenced for each step
so a mech can make 10,000 foot prints and we only need to know where they are and we can load the same foot print each time
this info already being tracked and passed thru the game/network so we can just use that, no need to generate new data (mechs locations are constantly tracked by the server/clients/physics checks ect)
now lets assume many mechs have similar feet and can share foot prints(ie timber wolf and catapult)
say half our mechs have unique foot prints (thats quite generous), our numbers change drastically
24 mechs = 12 feet (unique pairs)
12 unique textures @ 200k each = 1.8mb
+ coordinates data for print locations = 3.5mb
round it up to worst case and your still only looking at about 15mb of memory used
but suddenly tracking 24 mechs permanent foot prints isnt so hard
back in the days of 12mb of ram, you would of been shot for suggesting using 3.5mb on foot prints
but these days we carry ram in the Gigabytes not Megabytes