Skip to main content
2 of 2
added 253 characters in body
zacaj
  • 211
  • 1
  • 3
  1. Don't use a linked list, use a linked list of arrays that each have (say) 1min reserved

  2. 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.

  3. If your game is deterministic, you could just record the player input

  4. 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