Skip to content

Commit

Permalink
why did i remove that
Browse files Browse the repository at this point in the history
This reverts commit 45be951.
  • Loading branch information
Jaklyy committed Dec 16, 2024
1 parent 5c5f436 commit 67198a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GPU3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2378,13 +2378,13 @@ void GPU3D::Run() noexcept
if (!GeometryEnabled || FlushRequest ||
(CmdPIPE.IsEmpty() && !(GXStat & (1<<27))))
{
Timestamp = NDS.ARM9Timestamp >> NDS.ARM9ClockShift;
Timestamp = std::max(NDS.ARM9Timestamp, NDS.DMA9Timestamp) >> NDS.ARM9ClockShift;
return;
}

s32 cycles = (NDS.ARM9Timestamp >> NDS.ARM9ClockShift) - Timestamp;
s32 cycles = (std::max(NDS.ARM9Timestamp, NDS.DMA9Timestamp) >> NDS.ARM9ClockShift) - Timestamp;
CycleCount -= cycles;
Timestamp = NDS.ARM9Timestamp >> NDS.ARM9ClockShift;
Timestamp = std::max(NDS.ARM9Timestamp, NDS.DMA9Timestamp) >> NDS.ARM9ClockShift;

if (CycleCount <= 0)
{
Expand Down

0 comments on commit 67198a7

Please sign in to comment.