Efficient Method of CFrame Logging

  1. What do you want to achieve?
    A system for easily keeping track of past player part CFrames roughly every ~10ms, allowing for data to be discarded beyond half a second (500 ping).
    This is for a fighting game, where server logging would be used to cross-check client prediction with whether or not a hit would’ve actually registered server-side. This would require for player CFrames (and weapon CFrames) to be constantly logged, to allow for this cross-checking to happen.
  2. What is the issue?
    It is simply too costly with standard implementation (i.e calculate every 10ms, discard after x time)
  3. What solutions have you tried so far?
    Again, the standard implementation. However, I do not currently have access to the immediate code. I am simply looking for better abstract solutions, than just running a constant 10ms while loop, and deleting all outdated info in said loop, as well as having to create new (and rather large) tables containing new data.