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

Feature: 50 Hz frame rate #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ilynxy
Copy link
Contributor

@ilynxy ilynxy commented Aug 24, 2022

Update screen every 20 ms (instead of 40 ms), because we can.

@ilynxy ilynxy marked this pull request as ready for review August 24, 2022 18:09
ilynxy added 2 commits August 25, 2022 21:08
Current frametick value must be saved/restored between CMotherBoard::SystemFrame() calls.
For example, if CPU/PPU breakpoint triggered in a middle of frame
processing current timing state of frame will be lost after resume
via 'g' debug command or pressing 'Run'toolbutton. Sometime this
leads to various FDD failure while debuggin, for exmple.

This fix is incomplete, because exact number of scheduled and processed
CPU/PPU ticks is still loss, but currently it is don't have much impact
and can be interpreted as oscillator frequency deviation on real HW
(anyway it is not cycle accurate emulation).

Of course, we need also rework debugger's step command. Currently this
one doesn't processing any timed event on peripherials, just steps
CPU/PPU by one instructions and handle interrupts.
@ilynxy ilynxy force-pushed the dev/framerate50Hz branch from 8a5f95d to 55ed930 Compare August 25, 2022 18:09
@nzeemin
Copy link
Owner

nzeemin commented Aug 5, 2024

Часть этих изменений применил в коммите 4f1c4a3

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.

2 participants