05 December 2007, 15:53 | #121 | ||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,839
|
Quote:
Quote:
I've got a little question: What does the following code do? ;ce code sert reequilibrer les pixels en cas ....... moveq #2,d5 and.l d7,d5 add.l d5,d6 ;+2 sur rouge moveq #1,d5 and.l d7,d5 ;+1 sur bleu add.l d5,d4 I tried removing it, and it seems to make no difference. Edit: I know, more or less, what it does now, the effect is only visible when scrolling. The ham fringing becomes much worse. However, I've spotted the mouse pointer influencing the colors! That means it's probably possible to use a sprite to get rid of the ham fringing when scrolling completely. And if thats the case, then the above code can be left out, which will make the frame count drop to 128! Last edited by Thorham; 05 December 2007 at 16:04. |
||
05 December 2007, 16:14 | #122 | ||
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
|
Quote:
For a quick example, imagine d1 is 00 and (a6)+ gives ff. The difference will be 01 - but should be ff ! If you bpl, you'll keep 01. If you bcc, however, you'll do the neg and hopefully end up with ff. Quote:
Errh, seriously, no. But it doesn't impact the rendering in itself. Here is how it works : My tests are made so that in case of identical error values blue will come first, then red, then green (reverse order of the normal ratio). Saying that d7 is the pixel loop counter (so it goes backwards), and d6/d5 are the error values for resp. red and blue - which, important, have b1-0 to 00 because of 6-bit components -, in a row of identical pixels we'll get : 11 +1 both (-> green pixels are the default) 10 +1 red (-> blue pixels) 01 +1 blue (-> red pixels) 00 nothing (-> blue pixels) And that will end up with GBRB patterns in rows of identical colors, thus avoiding those long erroneous lines. I hope it's clear enough. I doubt it though... To see it in action, apply the renderer to your 1024x768 image. Once the image is displayed, move your mouse to the right until the image can't scroll more to the right. Do this with both the code active and disabled ; you can't miss it even with a bad display. |
||
05 December 2007, 16:30 | #123 | |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
|
Quote:
Don't you have some sort of mouse pointer patch running and perturbating ? |
|
05 December 2007, 16:40 | #124 | |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,839
|
Quote:
|
|
05 December 2007, 17:21 | #125 | |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
|
Quote:
And I won't believe a sprite can change a ham display until I see it on my own screen. |
|
05 December 2007, 19:01 | #126 |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,839
|
Yes, you would still need that, and it would cost a lot. I was just thinking about you mentioning the problem at the beginning of this thread. There must be some sort of way to fix it
You can see the sprite change the ham colors in the fringing parts of the screen. Easiest way to check it out, is to remove then gbrb code, make the screen fringe really bad, and move the pointer over the fringing parts. If it doesn't work for you, then maybe theres something wrong at my end. I checked it in winuea and it doesn't seem to work, maybe it's not emulated or my hardware is buggy! Still, it might just be a feature. Edited: I've found a much clearer way of showing what I mean: ;ce code sert reequilibrer les pixels en cas ....... moveq #2,d5 and.l d7,d5 add.l d5,d6 ;+2 sur rouge moveq #1,d5 and.l d7,d5 ;+1 sur bleu add.l d5,d4 In this code, just add d7 to d6 and d4 directly. This will mess up the image, but move the mouse pointer around, and you should clearly see the effect. I've seen this happen in some viewers, and I thought I'd mention it. Last edited by Thorham; 05 December 2007 at 21:43. |
06 December 2007, 10:01 | #127 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
|
Sadly I can't check that before this week-end (as usual ).
However, do you see the same thing when running my viewer ? (you can do that by simply grabbing the ham image as iff and then display it with the "v" program) Because if you still see that then your mouse pointer is not a sprite, as I remove it. Alternatively you can spot the line zcall screen in ham8_test.s and add zcall mouseoff right after it, to do the same effect. |
06 December 2007, 16:29 | #128 | |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,839
|
Quote:
I got the address table working, and I must say there is no difference compared to my 64kb index table. I also checked the large address table, for 800x600 the nr of frames drops to 131. The table is still only 64kb, though. Last edited by Thorham; 06 December 2007 at 16:51. |
|
06 December 2007, 17:04 | #129 |
son of 68k
Join Date: Nov 2007
Location: Lyon / France
Age: 51
Posts: 5,355
|
I've found a possible spot for optimization, but failed to achieve anything.
Here is the idea... This : Code:
move.l d4,a5 add.l d6,a5 add.l d5,d6 add.l d5,d4 Code:
add.l d5,d4 add.l d6,d5 add.l d6,d6 sub.l d5,d6 add.l d4,d6 If we could do the same for that : Code:
add.l d4,d4 move.l d5,a5 add.l d5,d5 add.l a5,d5 But it doesn't seem to be possible to rewrite this part without a mul (horror !), a memory access (give up !) or with swaps (still too slow). Of course we have no spare regs. The goal of those two blocks of code is to get 2r+3g, 2r+b, 3g+b in the 3 very same regs we had r, g and b value - in less than 10 simple instructions and without using another reg. If you've got an idea... |
06 December 2007, 17:14 | #130 | |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,839
|
Cool, my miggy is ready to go, so I'll check it out.
Quote:
Last edited by Thorham; 06 December 2007 at 21:34. |
|
06 December 2007, 20:42 | #131 |
Total Chaos AGA is fun!
Join Date: Jun 2005
Location: USA
Posts: 873
|
|
06 December 2007, 21:32 | #132 |
Moderator
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 37
Posts: 11,168
|
Shall I assume that was ironic?
|
06 December 2007, 21:40 | #133 | |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,839
|
Quote:
|
|
06 December 2007, 22:18 | #134 |
Total Chaos AGA is fun!
Join Date: Jun 2005
Location: USA
Posts: 873
|
Please place the example hampic in the zone and I will test it on my real A1200.
p.s. does the problem only happen in HAM8 or also in HAM6? |
06 December 2007, 22:36 | #135 | |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Quote:
Just because you don't use / like WinUAE doesn't give you the right to slag it off without reason... There are alot of members here who do use / love WinUAE and find it a very good / stable piece of software. I for one only use WinUAE!!! Also, don't forget that the author visits EAB, is a very active / helpful member on these forums and to the Amiga community overall. Not sure if he's read your comments as yet but not very nice considering all the time / effort he puts into this project for free... Software bashing on EAB is not allowed full stop. This goes for AmiKit, Classic WorkBench, AmigaSys, WinUAE or whatever. If you have nothing constructive or relevant to add the thread then it's probably best not to say anything at all... I mean, it's awesome for people to have different opinions and of course you are entitled to yours but as mentioned above, slagging something off without good reason isn't appropriate. Please try to be a bit more constructive with your future posts. |
|
06 December 2007, 22:41 | #136 |
Total Chaos AGA is fun!
Join Date: Jun 2005
Location: USA
Posts: 873
|
I wasn't bashing UAE. I was merely making a statement of fact.
|
06 December 2007, 22:46 | #137 |
Moderator
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 37
Posts: 11,168
|
|
06 December 2007, 22:51 | #138 | |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
Quote:
Anyway, I don't want to get into an argument about this. Your comments are completely off topic, do not belong in this thread and sure look like unsubstantiated software bashing to me... Please stay on topic. |
|
06 December 2007, 22:53 | #139 |
Total Chaos AGA is fun!
Join Date: Jun 2005
Location: USA
Posts: 873
|
Extensive documentation of numerous UAE bugs would be off topic in this thread. Behave yourself.
|
06 December 2007, 23:05 | #140 |
Banned
Join Date: Aug 2005
Location: London / Sydney
Age: 47
Posts: 20,420
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HAM8 screen question. | Thorham | Coders. General | 28 | 04 April 2011 19:26 |
HAM8 C2P Hacking | NovaCoder | Coders. General | 2 | 25 March 2010 10:37 |
Problem making ham8 icons. | Thorham | support.Apps | 0 | 12 March 2008 22:30 |
Multiple HAM8 pictures? | killergorilla | support.Other | 4 | 15 February 2007 14:41 |
|
|