Search found 36 matches

by uko
Thu Sep 17, 2020 7:54 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

You can try it with Hatari devel version and it will be included in Hatari 2.3 I have done some tests and it seems that Hatari is very accurate now versus real HW for this blitter aspect ... but not the way I would have hoped ! :lol: Let me explain. In the screen I am coding, I encountered a bug wi...
by uko
Fri Sep 11, 2020 9:40 am
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

Great !!!
I'll try this with the develop version soon.
Thanks Nicolas.
by uko
Fri Jul 31, 2020 9:49 pm
Forum: Coding
Topic: Atari STE Blitter objects demo (new record)
Replies: 88
Views: 5245

Re: Atari STE Blitter objects demo (new record)

Anima wrote: Thu Jul 30, 2020 8:19 pm After two more runs it seems that the issue has indeed been fixed by replacing the CPU.
Maybe this CPU did not want to admit defeat versus the blitter :lol:
by uko
Fri Jul 31, 2020 8:05 pm
Forum: Coding
Topic: How to perform vertical scrolling of the screen?
Replies: 9
Views: 685

Re: How to perform vertical scrolling of the screen?

If you consider yourself as a n00b or if you need to deal with interrupts, then maybe the preshifted technique mentionned by thomas3 few posts above would definitively be simpler ;-) But if you really want to dive into the syncscroll, you can also start with Alien's articles. Part 1 and 2 start with...
by uko
Wed Jul 29, 2020 4:27 pm
Forum: Coding
Topic: How to perform vertical scrolling of the screen?
Replies: 9
Views: 685

Re: How to perform vertical scrolling of the screen?

And the ST Synclock demosystem by evil from DHS provides some ready to use code.
https://dhs.nu/files.php?t=democreation
by uko
Wed Jul 29, 2020 4:22 pm
Forum: Coding
Topic: How to perform vertical scrolling of the screen?
Replies: 9
Views: 685

Re: How to perform vertical scrolling of the screen?

On ST, you cannot do a vertical scroll as simply as you can do on STe by changing the screen address. You have to use the syncscroll technique that is not so obvious. If I remember well there should be several posts in the forum that describe how it works.
by uko
Fri Apr 10, 2020 8:55 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

Ok, so I'll let you finish it ! Your modifications will be far more accurate than mine ! :lol:
by uko
Fri Apr 10, 2020 8:46 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

Ok thanks for the explanation ! I'm going too look further in Hatari code then ! :wink:
by uko
Fri Apr 10, 2020 8:33 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

Uko took some time to look at Hatari's code and sent me a patch to fix the condition where NFSR was incorrectly used to trigger a read-write-modify operation (instead of just relying on the endmask). So current Hatari devel version should now have correct number of cycles when blitting with Uko's e...
by uko
Tue Mar 31, 2020 8:33 pm
Forum: 680x0
Topic: synclock twice in a vbl
Replies: 8
Views: 1408

Re: synclock twice in a vbl

Just an idea, difficult to say without looking at the whole code: The synccode that you are using only works if the low byte of the video counter at the beginning of the line is equal to zero, i.e. the address of the begin of the line if multiple of 256. For your timer A syncscroll, you are at the b...
by uko
Wed Mar 04, 2020 10:57 pm
Forum: Professionals
Topic: Wanted: Colours per line routine/prg
Replies: 18
Views: 1989

Re: Wanted: Colours per line routine/prg

mrbombermillzy wrote:@uko: Thankyou. Thats very kind. I would like to take a look at what you have. It sounds very useful. :)
Ok, here it is !
ReduceColors.zip
by uko
Wed Mar 04, 2020 10:44 pm
Forum: Professionals
Topic: Wanted: Colours per line routine/prg
Replies: 18
Views: 1989

Re: Wanted: Colours per line routine/prg

If it may help, I have made a Python script that allows to load an image, to display it, to display number of colours (global or per line), to reduce the number of colors (global or per line) or to split each line and to allow to reimport them. It also can generate the picture (binary format) and pa...
by uko
Sun Feb 16, 2020 7:27 pm
Forum: Coding
Topic: Decreasing colours (algorithm)
Replies: 17
Views: 2328

Re: Decreasing colours (algorithm)

But finally the method I have used is to split the picture in multiple one line image files, then use XnView to convert each line file to x colors (using the batch converter and selecting one dithering method), then reassembling the converted files. So this weekend I wrote a little Delphi tool to s...
by uko
Wed Feb 12, 2020 5:47 pm
Forum: Coding
Topic: Decreasing colours (algorithm)
Replies: 17
Views: 2328

Re: Decreasing colours (algorithm)

Playing a 9600Hz digi-sound means the replay routine should be executed 192 times per VBL. Changing the palette every line means changing it 200 times per VBL. If you use interrupts for both the replay routine (Timer-A) and the color changes (HBL), it will be difficult to avoid interrupts jitter (l...
by uko
Wed Feb 12, 2020 1:03 pm
Forum: Coding
Topic: Decreasing colours (algorithm)
Replies: 17
Views: 2328

Re: Decreasing colours (algorithm)

Hi, I have never tried the tool mentionned by joska, but it seems interesting ! On my side I have used home-made converters to achieve this. I have tried the method you have in mind, Arne, but it provided worse results than simply reducing the bitdepth for each color until you have a maximum of 16 c...
by uko
Sat Jan 18, 2020 7:12 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

fenarinarsa wrote:Don't forget that on Mega STE the blitter takes 4 extra cycles to start ;)

I think Leonard had to take this into account for "We Were@" to work correctly on Mega STE.
Thanks for the info, I'll have to think about that !
by uko
Thu Jan 09, 2020 11:11 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

npomarede wrote:Hopefully, I will be able to fix this in a near future :)
Hopefully I'm a slow coder and it will take me a long time to finish my screen ! :lol:
Thanks.
by uko
Thu Jan 09, 2020 8:16 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

I will have a look at this case ; I have some work in progress to fix some wrong cases where xcount=1 (as Ijor described them to me) and not many time at the moment. I will see if this can be fixed on current code base or if this needs to be part of the rewrite I'm planning to do. Hi ! Thanks for y...
by uko
Thu Jan 09, 2020 6:57 am
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

Everybody is wrong in this case. If XCOUNT is set to one, Blitter doesn't fully honor the NFSR bit and performs a final source read regardless. It might be considered a Blitter buglet, but you shouldn't need to use NFSR if XCOUNT is one. In the post describing the tests I have performed, when I tal...
by uko
Wed Jan 08, 2020 10:10 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

Hi could you provide the executable in your zip archive ? My STE is currently not available (still packed after recently moving home), but maybe some other people here could run your tests on their STE. Nicolas No problem. The source needs to be recompiled to change the test parameters, but I have ...
by uko
Wed Jan 08, 2020 9:45 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

Hi! In order to make things clearer (at least for me !), I have written a little test program to perform some tests and count the number of memory accesses performed by the blitter. The source code is included in the zip file attached to this post. This program blits a one bitplane rectangle onto th...
by uko
Tue Jan 07, 2020 10:36 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

How it would be useful to enable NFSR without a mask ??? In very limited cases... But imagine you have a background using only 3 bitplanes, and a one bitplane sprite of size 16x200 to move over (and of course accurate palette settings). In this case, when you set both SKEW and NFSR, you don't mind ...
by uko
Tue Jan 07, 2020 9:07 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

It is true that there is no much point in using NFSR without a mask. But (if for some reason) NFSR is set and the active mask is $FFFF and the OP mode doesn't require the original dest data, then Blitter doesn't perform a destination read. It may be useful if you use bitplanes as layers, with 16 pi...
by uko
Mon Jan 06, 2020 10:04 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Re: Blitter Execution Times

Nicolas, Thanks for pointing the Hatari source code, I'll have a look to it. I am quite surprised that masking does not add additional cycles, and it seems that in my attempts (but I must check again of course), Hatari uses more cycles when mask is not $FFFF. But I am in the case where XCount = 1 (i...
by uko
Mon Jan 06, 2020 9:06 pm
Forum: Coding
Topic: Blitter Execution Times
Replies: 43
Views: 5801

Blitter Execution Times

Hi ! Up to now I have mainly used the following table to estimate the blitter execution times for sizing my code (and also the Blitter FAQ from The Paranoid of Paradox): http://retrospec.sgn.net/users/tomcat/miodrag/Atari_ST/Atari%20ST%20Internals.htm#BLITTER These timings seem OK as loong as SKEW, ...

Go to advanced search