Skip to content

Commit

Permalink
Remove execute_cycles adjustment based on video_count value
Browse files Browse the repository at this point in the history
Commenting out this line appears to fix issue libretro#224 with no adverse effects elsewhere, as far as I can see through limited testing on these games and other games in my collection.

@davidgfnet you will know far better than me, but maybe this line is rendered unnecessary following after you implemented DMA sleep mode and taking into account those cycles?
  • Loading branch information
andymcca authored May 18, 2024
1 parent 4caf7a1 commit 32079c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* gameplaySP
1/* gameplaySP
*
* Copyright (C) 2006 Exophase <[email protected]>
*
Expand Down Expand Up @@ -262,7 +262,7 @@ u32 function_cc update_gba(int remaining_cycles)

// Figure out when we need to stop CPU execution. The next event is
// a video event or a timer event, whatever happens first.
execute_cycles = MAX(video_count, 0);
// execute_cycles = MAX(video_count, 0);
{
u32 cc = serial_next_event();
execute_cycles = MIN(execute_cycles, cc);
Expand Down

0 comments on commit 32079c1

Please sign in to comment.