Is there a program that records your mouse actions (and keystrokes if possible, doesn't matter)
and plays them back PERFECTLY at REAL TIME?

This is because i have tried 10+ macro programs and every time they play back the mouse movements it lags behind and gets slow as time goes on.

I need this because i am editing and play testing software for a game that I am designing which features moderate graphics. I need the mouse playback to be near perfectly in sync and not laggy.

Thank you very much.