Vamiga: Misplaced HSYNC area

Created on 11 Feb 2020  ·  5Comments  ·  Source: dirkwhoffmann/vAmiga

When comparing vAmiga with UAE, it seems that the whole screen needs to be shifted a few pixels to the right.

UAE:

Bildschirmfoto 2020-02-11 um 09 33 07

vAmiga:

Bildschirmfoto 2020-02-11 um 09 27 45

Bug Denise Priority Low

All 5 comments

According to “Amiga Intern“, the HBLANK area covers DMA cycles $F - $35 and I implemented it this way in vAmiga.

Bildschirmfoto 2020-03-12 um 16 46 41

However, these values seem to be wrong. I can pretty much mimic the original machine and UAE if I let the HBLANK area span from $A to $30:

UAE:

Bildschirmfoto 2020-03-12 um 16 35 54

vAmiga with HBLANK spanning from $A to $30:

Bildschirmfoto 2020-03-12 um 16 34 50

Unfortunately, a lot of stuff such as the Workbench looks misaligned with these values (also on the real machine). Hence, it might be best to make the HBLANK area adjustable in vAmiga. I could add a control to the Video settings that shifts the HBLANK area around a few DMA cycles 🤔.

In case of the workbench I know in preferences settings of the workbench is exactly the video setting you consider to add in vAmiga.

What happens if you choose the midvalue in preferences? It might give us an idea of what the developers of workbench thought to be the center.

preferences settings

Oh yes, of course, this explains the odd workbench look. It's just that the settings are screwed up.

What happens if you choose the midvalue in preferences?

I tried the two corner cases (upper left, lower right) in UAE:

Bildschirmfoto 2020-03-12 um 22 56 52

Bildschirmfoto 2020-03-12 um 22 57 01

When I map the HSYNC area to $B - $31 (not $A - $30 as mentioned before), vAmiga looks pretty much the same:

Bildschirmfoto 2020-03-12 um 23 04 54

Bildschirmfoto 2020-03-12 um 23 05 10

I think I should simply go for these values...

Looks fine 🤤👍🏻

The next version will provide flexible means to adjust the texture cutout. There will be four circular sliders in the video settings: H CENTERING, V CENTERING, H ZOOM, V ZOOM (up to now, H ZOOM and V ZOOM were identical and just called ZOOM). The main difference will be that these sliders don't move the render cube any more. Now, they directly determine the texture area that is spanned over the render cube.

The largest displayable area within the texture will be this:

cutout1

Black area is unused, gray area is VBLANK and HBLANK area and thus not displayable.

Using H ZOOM, V ZOOM, the user can shrink the area, e.g., to this:

cutout2

Using H CENTERING and V CENTERING, the shrinked rectangle can be moved around like this:

cutout3

cutout4

As "factory settings" I have chosen values that pretty much mimic what we see in UAE. We could also use Robin Hood for calibration, but we would need to know his real weight for this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dirkwhoffmann picture dirkwhoffmann  ·  3Comments

dirkwhoffmann picture dirkwhoffmann  ·  3Comments

mithrendal picture mithrendal  ·  3Comments

KenDFish picture KenDFish  ·  3Comments

dirkwhoffmann picture dirkwhoffmann  ·  4Comments