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

Add Tick Count to Movie Files #508

Merged
merged 1 commit into from Jun 20, 2014
Merged

Add Tick Count to Movie Files #508

merged 1 commit into from Jun 20, 2014

Conversation

RisingFog
Copy link
Member

Added tick count to .dtm movie files for more accurate time calculations

@delroth
Copy link
Member

delroth commented Jun 18, 2014

Idea LGTM, will let @lioncash continue to review the code.

@dolphin-emu-bot rebuild

@lioncash
Copy link
Member

Looks fine to me as well.

@lioncash
Copy link
Member

@RisingFog Just squash the alignment, formatting etc commits into the main commit, and it should be good to go :)

@RachelBryk
Copy link
Member

Two problems i see:

You need to save current tick count to save state, otherwise if close dolphin and restart it g_tickCountAtLastInput will be 0, then if you load a save state, you will increase total tick count by much more than it should be.

You also need to 0 out g_tickCountAtLastInput on shutdown/init, otherwise it will break if you stop recording, then start recording a new movie without closing dolphin.

@RachelBryk
Copy link
Member

Also the way you've done this, g_currentTickCount is totally unecessary

@@ -834,6 +844,8 @@ void LoadInput(const std::string& filename)
g_totalFrames = tmpHeader.frameCount;
g_totalLagCount = tmpHeader.lagCount;
g_totalInputCount = tmpHeader.inputCount;
g_totalTickCount = tmpHeader.tickCount;
g_tickCountAtLastInput = tmpHeader.tickCount;

This comment was marked as off-topic.

@RachelBryk
Copy link
Member

LGTM

@RachelBryk
Copy link
Member

@dolphin-emu-bot rebuild

Added tick count to .dtm movie files for more accurate time calculations
@lioncash
Copy link
Member

And once more (although it'll likely pass as usual)

@dolphin-emu-bot rebuild

neobrain added a commit that referenced this pull request Jun 20, 2014
Add Tick Count to Movie Files
@neobrain neobrain merged commit ddce7e9 into dolphin-emu:master Jun 20, 2014
@RisingFog RisingFog deleted the upstream branch June 27, 2014 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants