Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mario has pixel tearing on top rows while running #40

Open
elp2 opened this issue Mar 14, 2025 · 0 comments
Open

Mario has pixel tearing on top rows while running #40

elp2 opened this issue Mar 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@elp2
Copy link
Owner

elp2 commented Mar 14, 2025

It appears that SCX is set, and then set back to zero. Occasionally, this happens after we have started rendering rows 0, 1 which means that they may be somewhat torn. This is probably a timing issue.

setscx: 8f
setscx: 0
Frame cycles: 70224
Ending AOF
Starting AOF
0: scx: 0 shift 0 bgx_ = 130
bgx now: 0
Getting bg tile: 0x0 x 0x0 from 9160
Getting bg tile: 0x8 x 0x0 from 90a0
PO0
Getting bg tile: 0x10 x 0x0 from 91b0
Getting bg tile: 0x18 x 0x0 from 9120
Getting bg tile: 0x20 x 0x0 from 9180
Getting bg tile: 0x28 x 0x0 from 92b0
Getting bg tile: 0x30 x 0x0 from 9000
Getting bg tile: 0x38 x 0x0 from 9020
Getting bg tile: 0x40 x 0x0 from 92c0
Getting bg tile: 0x48 x 0x0 from 92c0
Getting bg tile: 0x50 x 0x0 from 9200
Getting bg tile: 0x58 x 0x0 from 9180
Getting bg tile: 0x60 x 0x0 from 91b0
Getting bg tile: 0x68 x 0x0 from 9150
Getting bg tile: 0x70 x 0x0 from 90d0
Getting bg tile: 0x78 x 0x0 from 92c0
Getting bg tile: 0x80 x 0x0 from 91d0
Getting bg tile: 0x88 x 0x0 from 9120
Getting bg tile: 0x90 x 0x0 from 9160
Getting bg tile: 0x98 x 0x0 from 90e0
Getting bg tile: 0xa0 x 0x0 from 92c0
1: scx: 0 shift 0 bgx_ = a0
2: scx: 0 shift 0 bgx_ = a0
setscx: 90 <<< Set here
Frame cycles: 70228
Ending AOF
Starting AOF
0: scx: 90 shift 0 bgx_ = 130 <<<<<< Row 0 rendererd with this way too high SCX (should be 0)
bgx now: 90
Getting bg tile: 0x90 x 0x0 from 9160
Getting bg tile: 0x98 x 0x0 from 90e0
PO0
Getting bg tile: 0xa0 x 0x0 from 92c0
Getting bg tile: 0xa8 x 0x0 from 92c0
Getting bg tile: 0xb0 x 0x0 from 92c0
Getting bg tile: 0xb8 x 0x0 from 92c0
Getting bg tile: 0xc0 x 0x0 from 92c0
Getting bg tile: 0xc8 x 0x0 from 92c0
Getting bg tile: 0xd0 x 0x0 from 92c0
Getting bg tile: 0xd8 x 0x0 from 92c0
Getting bg tile: 0xe0 x 0x0 from 92c0
Getting bg tile: 0xe8 x 0x0 from 92c0
Getting bg tile: 0xf0 x 0x0 from 92c0
Getting bg tile: 0xf8 x 0x0 from 92c0
Getting bg tile: 0x100 x 0x0 from 9160
Getting bg tile: 0x108 x 0x0 from 90a0
Getting bg tile: 0x110 x 0x0 from 91b0
Getting bg tile: 0x118 x 0x0 from 9120
Getting bg tile: 0x120 x 0x0 from 9180
Getting bg tile: 0x128 x 0x0 from 92b0
Getting bg tile: 0x130 x 0x0 from 9000
1: scx: 90 shift 0 bgx_ = 130
setscx: 0 << Reset here
2: scx: 0 shift 0 bgx_ = 130
setscx: 91
setscx: 0
Frame cycles: 70224

@elp2 elp2 changed the title Mario has pixel tearing on top rows. Mario has pixel tearing on top rows while running Mar 14, 2025
@elp2 elp2 added the bug Something isn't working label Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant