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

GPU sync problem #17

Closed
Amjad50 opened this issue Aug 22, 2022 · 1 comment · Fixed by #18
Closed

GPU sync problem #17

Amjad50 opened this issue Aug 22, 2022 · 1 comment · Fixed by #18

Comments

@Amjad50
Copy link
Owner

Amjad50 commented Aug 22, 2022

When was working on MDEC (#15), there was an issue when testing with the mdec test from JaCzekanski_tests.

The issue is that the gpu DMA (2), would hang in the middle, because it would set the CPUtoVRAM blit command, and then the flag READY_FOR_CMD_RECV should be cleared, but because we are doing it in another thread, there seems to be a delay after the command is written to the GPU and the flag being cleared.
Not sure why, but the test rom will hang (maybe bug in the library that handles GPU DMA), but the GPU sync should be fixed anyway this will help make the GPU more accurate and hopefully fixes more bugs (#7 ?)

@Amjad50 Amjad50 mentioned this issue Aug 24, 2022
@Amjad50
Copy link
Owner Author

Amjad50 commented Aug 24, 2022

After fixing the issue, the main issue was with the flag DMA_DIRECTION being out of sync

@Amjad50 Amjad50 moved this to Done in PSX Sep 27, 2022
@Amjad50 Amjad50 added this to PSX Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant