Don't use a linked list, use a linked list of arrays that each have (say) 1min reserved
You probably don't need to be recording most frames. Recording only every 3rd frame would save a lot of space, and you could get away with less than that.
If your game is deterministic, you could just record the player input
Your position is most likely being stored as either 3 floats or 3 doubles (12/24 bytes, possible 16/32 if the memory is being padded). You could probably save some space and save them as integer shorts (short x=position.x*10). This would be lossy saving, as you would lose precision (only one decimal place if you multiply by 10, and your positions couldn't be greater than 3,276)
zacaj
- 211
- 1
- 3