Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replays should allow to rewind and fast-forward #41

Open
vqw opened this issue Aug 13, 2015 · 5 comments
Open

Replays should allow to rewind and fast-forward #41

vqw opened this issue Aug 13, 2015 · 5 comments

Comments

@vqw
Copy link
Contributor

vqw commented Aug 13, 2015

The game does not allow us to set demo time arbitrary but we should try to introduce it.
Watching replays is painful without possibility to go back or to fast go forward.

I can inspect the code and try to implement this for future release.

@vqw vqw changed the title Introduce ReplayTime as a TKMEdit field Introduce ReplayTime as a TKMEdit field in the Replay Panel Aug 13, 2015
@Kromster80
Copy link
Owner

Placing TKMEdit will not magically add the required functionality.

@TehPlayer14
Copy link

Unless there would be a spectator bot that could record whole map or each player view

@Kromster80
Copy link
Owner

Replays work a little bit different than that.

There's the initial game state (savegame.bas) and a list of all player commands (savegame.rpl) that guide the games state.

With this system to get to the 60min timestamp the replay needs to go through 60_60_10 ticks of the game and apply all the commands in the order. Which is a LOT of processing for the CPU.

Another case is when you want to rewind back (e.g. from 60min to 50min). The game has no mechanism of recording previous states or reverse-applying them. So with the current design the replay needs to start anew and fast forward to 50min.

@vqw
Copy link
Contributor Author

vqw commented Aug 14, 2015

This is what I was thinking about - restarting replay and fast forwarding (x 10000) in the case of rewinding back and only FF when going forward.
During this operation we can stop rendering etc.

Still the CPU will be heavy loaded but maybe we can optimize it in some cases.

@Kromster80
Copy link
Owner

This feature needs more planning before starting to work on it.

@Kromster80 Kromster80 changed the title Introduce ReplayTime as a TKMEdit field in the Replay Panel Replays should allow to rewind and fast-forward Aug 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants