Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,10 @@ 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);

// Set this low to increase frequency we check for interrupts during the scanline
// but sync with video count once we get equal or below 96 cycles remaining
execute_cycles = MIN(video_count, 96);
{
u32 cc = serial_next_event();
execute_cycles = MIN(execute_cycles, cc);
Expand Down