-
Notifications
You must be signed in to change notification settings - Fork 57
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
Very Minor alignment issue for different resolutions #204
Comments
This is a very low priority, as I do not believe it to interfere with the enjoyment of any games. |
If i remember right i did adjustments to the way it is to let games with variable resolutions in the frame to look better. |
Sometime soon, I will measure timing between HSYNC pulse and start of data with an oscilloscope, on original hardware and MiSTer composite, for each resolution. It's very small, and this will prevent guesswork. |
I've started to take some measurements; I am placing findings here, and will make conclusions before deciding what sort of changes might be required (if any). Scope traces from PC Engine Duo, using "Screen Dimension Test" from this page: Screen Dimension Test First round - "256 pix mode": Settings: Low horizontal resolution (~5.37 MHz, approx. 256 pix visible, 186.24ns/pixel): Notes:
Finally, the timings at 5MHz mode are are follows: This also means that the first pixel displayed in this mode is 6.95uS after the HSYNC ends. |
Second round - "344 pix mode": Settings: Medium horizontal resolution (~7.16 MHz, approx. 344 pix visible, 139.68ns/pixel): HSW = 02 Timings for this trace are as follows: First pixel displayed in this mode is 7.04uS after the HSYNC ends. |
Third round - "512 pix mode": Settings: High horizontal resolution (~10.74 MHz, approx. 512 pix visible, 93.12ns/pixel): HSW = 02 Timings for this trace are as follows: First pixel displayed in this mode is 7.13uS after the HSYNC ends. |
Viewing the original hardware again, the left edges don't exactly align, although they appear to align more exactly than the appearance in the MiSTer screenshot. The PC Engine also can display more information in the horizontal overscan area on both sides, in each of the medium and high-res modes... although it's not clear whether this information is actually useful. In any case:
|
MiSTer measurements for 256-pix mode: Timings for this trace are as follows: First pixel displayed in this mode is 6.95uS after the HSYNC ends. |
For games not using variable resolution during a single frame these offsets aren't visible. |
For alignment, I'm thinking that all that may be required is a "shift of 1 pixel to the right" at each mode, which would more closely align their left edges, and would still allow a full tile block shift to the left in 256 pix mode, with all pixels visible (currently only 7 of 8 are shown). This basic information may also be helpful with other future questions about video. |
There is a homebrew Split-Resolution test, which may be the only program which uses all three resolutions on the screen at the same time - it can be found on this page: SplitRes by Chris Covell
I am also attaching the program here:
SplitRes.zip
ORIGINAL HARDWARE:
You can see on a picture from original hardware that the program intended all three resolutions to have the left edge aligned:
MiSTer:
However, MiSTer's alignment is slightly wrong for the mid-resolution (by 1 or 2 pixels), and high-resolution is wrong by a little bit more:
Mednafen:
For reference, Mednafen has high-res and low-res aligned, but mid-res is slightly wrong:
The text was updated successfully, but these errors were encountered: