I didn't say anything about sending replays Well, the OP mentions demos as a possibility so it's something to keep in mind.Xugro wrote: ↑Sat Jun 25, 2022 7:22 pm Is there a problem with the speed of the playback? I am not sure.
Let's assume you have a fast pc and record your game with 60 fps. Then you send the recording to me. I have a slow pc and can only run the game with 30 fps. Since the playback would use the recorded dt's and my slow pc takes twice as long to recalculate everything, I would see the playback with half the original speed - wouldn't I? And I don't see where a timestamp would fix this problem.
Anyway, assuming there's enough idle time for it to run on both systems, it will probably work. Typically the recording program will have vsync on, and have idle time between frames. The replaying program needs to disable vsync (because the monitors are not guaranteed to use the same frame rate), so some tearing and/or stuttering is possible during replays. That's the idea, at least. If the recording program uses 100% CPU, then the replay will certainly run slower in a slower machine.
More than anything, the main use I see for this is to debug, or ask for help with, hard-to-reproduce bugs. I did something like this some time ago to help with a forum post about an intermittent bug, when I faced the challenge of how to debug it in a repeatable way so that I could check what went wrong.