Skip to content

Commit

Permalink
Merge pull request #8889 from JosJuice/movie-frame-update-frequency
Browse files Browse the repository at this point in the history
Core: Call Movie::FrameUpdate per field, not per line
  • Loading branch information
Tilka committed Jun 27, 2020
2 parents b36ab83 + 9eb36af commit 2e8d1dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Core/Core/HW/VideoInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,8 @@ void Update(u64 ticks)
// Movie's frame counter should be updated before actually rendering the frame,
// in case frame counter display is enabled

Movie::FrameUpdate();
if (s_half_line_count == 0 || s_half_line_count == GetHalfLinesPerEvenField())
Movie::FrameUpdate();

// If this half-line is at some boundary of the "active video lines" in either field, we either
// need to (a) send a request to the GPU thread to actually render the XFB, or (b) increment
Expand All @@ -843,7 +844,7 @@ void Update(u64 ticks)
EndField();
}

// If this half-line is at a field boundary, deal with updating movie state before potentially
// If this half-line is at a field boundary, deal with frame stepping before potentially
// dealing with SI polls, but after potentially sending a swap request to the GPU thread

if (s_half_line_count == 0 || s_half_line_count == GetHalfLinesPerEvenField())
Expand Down

0 comments on commit 2e8d1dd

Please sign in to comment.