Skip to content

Conversation

@Stevebel
Copy link

@Stevebel Stevebel commented Apr 23, 2025

Description

I've been using this branch for a couple of years and had complaints about occasional flickering with the palette swapping. It appears that sometimes for a frame or two a block of lines would use the wrong palettes. After line by line debugging, I found that occasionally the HBlank callback wouldn't run for some lines.

I added a variable to track the VCount on the previous HBlank and made the palette swap occur if the vertical line was passed, ensuring that it still swaps on every frame (even if it's off by a line). Haven't had any flickering since on both emulators and hardware.

Discord contact info

mostmodest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant