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

Enhance VBlank and HBlank polling #5

Open
bit-hack opened this issue May 22, 2019 · 0 comments
Open

Enhance VBlank and HBlank polling #5

bit-hack opened this issue May 22, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bit-hack
Copy link
Owner

Currently every 15 cycles the CPU emulator invokes a timing routine to update port 03DAh (bits 3 and 0). This gives poor granularity of updates, and pro-active updates can be wasted.
Re-calculate these fields only when the register is read, using the current cycle number as a guide.
This would give cycle exact granularity and reduce the computational cost overall.
This can be integrated into the new video system, but can be back ported into the old one too.
At the same time we can update the screen buffer when we enter the vblank period, for better synchronization with our emulation and avoid tearing.

@bit-hack bit-hack added the enhancement New feature or request label May 22, 2019
@bit-hack bit-hack self-assigned this May 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant