English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 26 November 2017, 08:43   #1
vagrant
Registered User
 
vagrant's Avatar
 
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
Possible ocs/ecs chipset bug? (palette flicker)

Watching Seven Seas by Andromeda, I notice there some ugly palette flickering during fades between pictures. Very noticeable with title screen (see pic.)
There are videos on YT which suggest it's been behaving like this for very long time (7+ years).

I usually only see this type of 'palette flicker' issue with AGA fastest possible/jit modes.. but in this case it is only AGA chipset displays the fades correctly(!).
CPU type and cycle exact modes look to be irrelevant.
Tested with standard quickstart configs.
Attached Thumbnails
Click image for larger version

Name:	001.png
Views:	227
Size:	98.0 KB
ID:	55604  
vagrant is offline  
Old 26 November 2017, 09:43   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,535
I can't see any flickering.
Toni Wilen is offline  
Old 26 November 2017, 09:51   #3
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
I have seen what may be palette flickering on OCS/ECS, but I think it's more how the routines for fading were written, like the odd-numbered colours were faded one step on one frame, with the even ones on another frame, if you know what I mean.

Some demos, especially AGA on faster models that can use JIT, have exhibited horrendous palette flickering when fading in and out, or even just animating the graphics. In that case, I find that turning off JIT is a good start to reduce it, and maybe slow down the CPU as well. One demo in particular gave me trouble this time last year ("Beats" by Loveboat) and the issue was well-discussed here then. Maybe look for "palette flickering" on these boards, especially UAE?
Foebane is offline  
Old 26 November 2017, 10:29   #4
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,535
Flickery-like behavior can be normal in slow OCS/ECS fades due to limited color component range (4 bits), it also depends on fade algorithm.
Toni Wilen is offline  
Old 26 November 2017, 11:49   #5
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Exactly, Toni. I wouldn't worry, Ed, that flickering on fades on OCS/ECS is normal. Some just fade better than others.
Foebane is offline  
Old 26 November 2017, 12:23   #6
Tomislav
Registered User
 
Join Date: Aug 2014
Location: Zagreb / Croatia
Posts: 302
If it is flickering as on original hardware that just means that emulation is good. Nothing to change.
Tomislav is offline  
Old 26 November 2017, 12:42   #7
vagrant
Registered User
 
vagrant's Avatar
 
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
It is not normal
Watch; first is AGA repeated x3.. then OCS/ECS x3
[ Show youtube player ]
vagrant is offline  
Old 26 November 2017, 12:55   #8
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,535
I don't care about videos, you never know what kind of extra processing is done by recorder or youtube..

Anyway, it still looks normal for slow OCS/ECS fade.
Toni Wilen is offline  
Old 26 November 2017, 14:46   #9
vagrant
Registered User
 
vagrant's Avatar
 
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
I can only test on real a1200 (and it works fine).. but all my 500's have faulty drives - or no drive at all.
I don't remember it happening under OCS.. but it was at least 10 years ago and memory could be corrupt
vagrant is offline  
Old 26 November 2017, 20:36   #10
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
I already have that demo in my collection and I just checked it on A500 and A1200 for you on WinUAE, and I'm getting the same thing: the fade looks bad on A500 and good on A1200.

Checking Pouet.net for this prod (http://www.pouet.net/prod.php?which=5373), it came out long after AGA was released in Europe, so I can only assume that the group responsible for this slideshow programmed enhancements for AGA machines so it would look better? It's the best explanation I can think of.
Foebane is offline  
Old 27 November 2017, 02:55   #11
vagrant
Registered User
 
vagrant's Avatar
 
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
I must have watched a hundred times back in the day, my favourite slideshow!
Only reporting as 'possible bug' because it seems weird I've never noticed it before.. but maybe this is simply the case, don't know
I'll try and resurrect one of my a500's.
vagrant is offline  
Old 27 November 2017, 07:56   #12
britelite
Registered User
 
Join Date: Feb 2010
Location: Espoo / Finland
Posts: 819
Quote:
Originally Posted by ED-209 View Post
It is not normal
Watch; first is AGA repeated x3.. then OCS/ECS x3
[ Show youtube player ]
Based on that video I'd say it's pretty obviously a 24bit fade on AGA and 12bit fade on OCS. So no WinUAE bug here, it works as it should.
britelite is offline  
Old 27 November 2017, 09:31   #13
Foebane
Banned
 
Join Date: Sep 2011
Location: Cardiff, UK
Age: 51
Posts: 2,871
Exactly what I thought, Britelite.
Foebane is offline  
Old 27 November 2017, 10:40   #14
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,480
Cannot be the only reason.
Yes, there is 12/24 bits differences but not so accentuated, if properly written an ECS fade cannot be so wrong.

I guessed there is a rounding error somewhere.
So I inspected the copper list and found the problem.

For some odd reason Andromeda guys zeroed the low bits color components (maybe not understanding AGA behavior?) so the colors are not the same in OCS/ECS and AGA!
AGA designers did the only and right thing to maintain compatibility: mirror low bits with high values so tint are better spread an the b/w spectrum are saturated. This copper list break this rule .

If you fade this different colors then obviusly there are rounding error when you have less bits available.

[EDIT: in fact, watching the video carefully can be seen that all AGA colors are less saturated]

Last edited by ross; 27 November 2017 at 10:50. Reason: []
ross is offline  
Old 27 November 2017, 10:42   #15
vagrant
Registered User
 
vagrant's Avatar
 
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
Britelite: obvious to a coder perhaps

Well I managed to get a 500 working anyway;
Behaves exactly the same as winuae, so only my memory that is bugged

I also managed to find an stock a600 in the dungeon (it's a magic dungeon).. under ECS the title screen is completely trashed, as is every picture displayed afterwards. So not replicating winuae in this case.

Useless information? Probably... at least I have the hardware ready to do proper testing now before boring Toni with premature assumption.
vagrant is offline  
Old 27 November 2017, 10:46   #16
vagrant
Registered User
 
vagrant's Avatar
 
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
Quote:
Originally Posted by ross View Post
so the colors are not the same in OCS/ECS and AGA!
Interesting.. I noticed the purple background during end part is a lighter shade under AGA.

edit: and thanks to everyone for investigating of course
vagrant is offline  
Old 27 November 2017, 12:00   #17
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,480
Well, effectively there is other strangeness.
On AGA, KILLEHB is used but the 32 high colors are the same tint as lows but with halfbrite self imposed .

EDIT: can be explained in case of recycling of the copper list and images that actually have 64 real colors in the slideshow.
But if your image is from start EHB why not use it in AGA?
Two different fading routines is mandatory in this demo or a better one..

Last edited by ross; 27 November 2017 at 12:13.
ross is offline  
Old 30 November 2017, 20:19   #18
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,535
Quote:
Originally Posted by ED-209 View Post
I also managed to find an stock a600 in the dungeon (it's a magic dungeon).. under ECS the title screen is completely trashed, as is every picture displayed afterwards. So not replicating winuae in this case.
I narrowed this down to ECS Denise. Same happens with A600 and also with A500 if it has ECS Denise (8373R4)

I still don't know why. Perhaps demo has strange AGA detection and misdetects it when only ECS Denise is installed? (EDIT: No, it isn't AGA detection) Or it writes to some ECS Denise/AGA registers that coder assumed are only in AGA?

EDIT: That was really stupid bug. BPLCON2 ECS Denise new bits were ignored, only AGA enabled them. Demo sets KILLEHB.

EDIT2: Fixed. Now palette is "correctly corrupted" if ECS Denise

Last edited by Toni Wilen; 30 November 2017 at 21:36.
Toni Wilen is offline  
Old 01 December 2017, 05:55   #19
vagrant
Registered User
 
vagrant's Avatar
 
Join Date: Mar 2012
Location: Australia
Age: 44
Posts: 1,126
Excellent Toni
Glad the thread had some use in the end
vagrant is offline  
Old 01 December 2017, 16:49   #20
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,480
Quote:
Originally Posted by Toni Wilen View Post
EDIT: That was really stupid bug. BPLCON2 ECS Denise new bits were ignored, only AGA enabled them. Demo sets KILLEHB.
Interesting
So practically you have a BPL6PTx pointed DMA fetch that goes to "nothing" (if i'm not wrong is an ECS feature for a genlock mask).
Is the last loaded value in BPL6DAT used to compose the final colour?
(no, i'm not for an ECS only mask effect..)

However, it looks a lot like a bug than a feature.
Much better if they used a bit for "bitmap genlock mask active".
This forces a specific control on the KILLEHB bit use.
ross is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the best games that were specifically designed for ECS chipset? ceaser support.Games 17 13 July 2019 13:25
Menace - OCS Colour Palette invent Retrogaming General Discussion 10 25 February 2015 21:28
WinUAE v2.5.0 - possible bug with Hardware configs, ECS Agnus chipset setting SedrynTyros support.WinUAE 1 06 December 2012 21:29
Has anybody used the new Indivision OCS/ECS Flicker Fixer barney Amiga scene 24 11 January 2010 18:45
Chipset type: OCS / ECS Agnus Njinsa support.WinUAE 4 19 December 2005 00:29

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:52.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10890 seconds with 16 queries