Jump to content
IGNORED

Possible screen ANTIC4 with 30charlines


Recommended Posts

Using just one charset for all the screen in a static multi-screens 5colours ANTIC4 no PFs DLIs game and because of that last/240th scanline bug is it possible to place the chars on all the 30charlines?

No problem with cpu because there's only 2 or 3 little sprites moving horizontally and and not much more just the PMGs...

 

And the PAL (312scanlines) and NTSC (262scanlines) any difference?

I tested the static screen on PAL Altirra and it shows all with the cpu is always between 55% and 62%. Is this right?

Link to comment
Share on other sites

Antic 4 30 lines is no problem.

Scanline 240 bug only occurs on the hires modes and even then it can be overcome with a bit of programming.

 

CPU time - yes, with 6 extra text lines there'll be less available. Throw in H-Scrolling and it'll drop even more.

Link to comment
Share on other sites

That show CPU% doesn't relate to the Atari - it's just saying how much of the PCs CPU the emulation is using.

 

You can't really easily meter the 6502 - it has no wait instruction, it's always "busy" - about all you could do to calculate idle time is to have a profiling system that knows which blocks of code in the OS are wait loops.

  • Like 1
Link to comment
Share on other sites

Altirra's profiling features can give you a good estimate of how much the CPU is throttled by a graphics mode. Just enter an infinite loop and look at the DMA% column:

 

post-21021-0-16938100-1405363540_thumb.png

 

1) Select Debug -> Profile -> Profile View

2) Click on Play button with Instruction Sampling mode selected (LDA)

3) Press Stop button after a couple seconds and now the Profile View is populated with the instruction samples with the most executed instructions on top

4) You can double click on the instruction to see a disassembled Source View.

 

You must have a VBI routine to restore DLISTL/H every frame, but that's negligible. So, the conclusion here is that a 30 row ANTIC 4 mode throttles the CPU down to 62.3% of it's maximum. Although, even with no display the RAM refresh cycles consume 7.9% of the available cycles, so really the 30-row ANTIC 4 mode leaves around 67% of the actual base number of available CPU cycles. For comparison, a 24 row ANTIC 4 mode screen throttles the CPU to 74% of it's actual maximum. So you're only loosing around 9.5% more cycles, i.e. (74-67)/74.

 

Source code and executable:

 

tallscreen.zip

  • Like 2
Link to comment
Share on other sites

I wrote a short script to calculate the percentage CPU time available for each ANTIC mode at varying heights. See github.

Useful script!

 

I would add the first blank modelines (3 standard) and the last jump (another 3 cycles) to the DMA cycles.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...