{"id":2200,"date":"2017-04-01T05:49:34","date_gmt":"2017-04-01T05:49:34","guid":{"rendered":"http:\/\/blog.system11.org\/?p=2200"},"modified":"2020-04-16T23:45:03","modified_gmt":"2020-04-16T23:45:03","slug":"nichibutsu-mahjong-visual-glitches","status":"publish","type":"post","link":"https:\/\/blog.system11.org\/?p=2200","title":{"rendered":"Nichibutsu Mahjong visual glitches"},"content":{"rendered":"<p>I&#8217;ve seen this on three different boards now, and it turns out that certain families of Nichibutsu Mahjong hardware can have problems with colour bleeding and minor visual glitches.\u00a0 For example Club 90&#8217;s and The Lady Hunter both suffer from this, here&#8217;s what a Lady Hunter PCB looks like:<\/p>\n<p><a href=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2191\" src=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj1.jpg\" alt=\"nbmj1\" width=\"855\" height=\"503\" srcset=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj1.jpg 855w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj1-300x176.jpg 300w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj1-768x452.jpg 768w\" sizes=\"(max-width: 855px) 100vw, 855px\" \/><\/a><\/p>\n<p>The bleeding usually manifests itself as colour fringing to the right of some top player graphics, in the below screenshot you can see a blue fringe to the right of the black border text box.\u00a0 In some cases it can appear to be red fringing and in others it can appear to be an absence of red.\u00a0 In other instances you can actually see colour problems to the left of graphics for example reds degrading and looking &#8216;sparkly&#8217; similar to a RAM fault<\/p>\n<p><a href=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2192\" src=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj2.jpg\" alt=\"nbmj2\" width=\"803\" height=\"472\" srcset=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj2.jpg 803w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj2-300x176.jpg 300w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj2-768x451.jpg 768w\" sizes=\"(max-width: 803px) 100vw, 803px\" \/><\/a><\/p>\n<p>If you look at the right side of the black border around the large 0, you can see the blue fringes affecting only certain other colours to the right, so it seems like it only affects certain bit depths.<\/p>\n<p><a href=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2193\" src=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj3.jpg\" alt=\"nbmj3\" width=\"837\" height=\"705\" srcset=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj3.jpg 837w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj3-300x253.jpg 300w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj3-768x647.jpg 768w\" sizes=\"(max-width: 837px) 100vw, 837px\" \/><\/a><\/p>\n<p>A final example from the same title screen, we can see that the company logo is fringing on every right-hand edge.<\/p>\n<p><a href=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2194\" src=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj4.jpg\" alt=\"nbmj4\" width=\"1210\" height=\"376\" srcset=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj4.jpg 1210w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj4-300x93.jpg 300w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj4-1024x318.jpg 1024w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj4-768x239.jpg 768w\" sizes=\"(max-width: 1210px) 100vw, 1210px\" \/><\/a><\/p>\n<p>So why does this happen?\u00a0 Well in many cases Mahjong hardware is hardly top of the line, they&#8217;re made to a budget and in some areas it shows.\u00a0 I&#8217;ve seen minor graphical artifacts you wouldn&#8217;t expect from a polished arcade game in many titles and on many types hardware, usually tearing or flickering.<\/p>\n<p>In this instance refer to the first PCB screenshot above and look at chip positions 3B to 3D, you will see three resistor packs and associated components which form the analogue picture output.\u00a0 The pack closest the edge of the board is for the red channel.\u00a0 The red and green are fed by one clock circuit, with the red going through two extra flip-flops, while the blue is fed by another.\u00a0 The drivers for these clock signals are chips 5p and 5N below.<\/p>\n<p>Unfortunately this cheap and cheerful hardware suffers from being extremely sensitive to the speed of these two 74LS74s.\u00a0 A problem with the one in 5p seems to mostly cause odd pixel glitches particularly in fast top layer draws &#8211; for example the smoke cloud part of the attract sequence in Lady Hunter.\u00a0 As for the two games which had colour fringing, these were both caused by the chip in 5N.<\/p>\n<p><a href=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2195\" src=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj5.jpg\" alt=\"nbmj5\" width=\"830\" height=\"493\" srcset=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj5.jpg 830w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj5-300x178.jpg 300w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj5-768x456.jpg 768w\" sizes=\"(max-width: 830px) 100vw, 830px\" \/><\/a><\/p>\n<p>The solution seems to be to simply replace them with other types.\u00a0 For colour fringing issues caused by 5N, I suggest substituting a 74S74 which is a faster chip.\u00a0 on a Lady Hunter with pixel glitching I found that substituting 5p for a different brand of 74LS74 was actually better than using a 74S74, while Club 90&#8217;s is now flawless fitted with two of the faster variants.\u00a0 If you&#8217;re still getting pixel glitching after replacing these, a final &#8216;adjustment&#8217; you can make is to populate C26 with a low value ceramic capacitor, 10pf for example totally cleared up another Club 90&#8217;s.<\/p>\n<p><a href=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2196\" src=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj6.jpg\" alt=\"nbmj6\" width=\"876\" height=\"535\" srcset=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj6.jpg 876w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj6-300x183.jpg 300w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj6-768x469.jpg 768w\" sizes=\"(max-width: 876px) 100vw, 876px\" \/><\/a><\/p>\n<p>You can see the blue fringe is gone, apologies for the moire effect, I&#8217;m getting very bad at taking photographs of TV screens<\/p>\n<p><a href=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2197\" src=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj7.jpg\" alt=\"nbmj7\" width=\"803\" height=\"498\" srcset=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj7.jpg 803w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj7-300x186.jpg 300w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj7-768x476.jpg 768w\" sizes=\"(max-width: 803px) 100vw, 803px\" \/><\/a><\/p>\n<p>And again on the big logo, the intermittent blue fringe is now gone.<\/p>\n<p><a href=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj8.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2198\" src=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj8.jpg\" alt=\"nbmj8\" width=\"837\" height=\"726\" srcset=\"https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj8.jpg 837w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj8-300x260.jpg 300w, https:\/\/blog.system11.org\/wp-content\/uploads\/2017\/04\/nbmj8-768x666.jpg 768w\" sizes=\"(max-width: 837px) 100vw, 837px\" \/><\/a><\/p>\n<p>These games left the factory like this, there&#8217;s no doubt about it.\u00a0 Nichibutsu probably knew about this but it simply wasn&#8217;t worth fixing urgently, especially since the fringing is almost invisible on small CRTs.\u00a0 The majority of Mahjong cabinets used in Japan are cocktail table type with screens of 20&#8243; or less, so this wouldn&#8217;t have really bothered players much, and operators even less.\u00a0 Of course on a large modern display or even worse a large LCD TV, the glitches become more apparent.<\/p>\n<p>On later hardware, the problem simply doesn&#8217;t exist.\u00a0 In fact it&#8217;s a fairly narrow band of games affected by this problem, but it wasted a lot of my time when I noticed and looked into a repair.\u00a0 That said many of the earlier boards suffer from sensitivity to brand of RAM used, again exhibiting visual artifacts.\u00a0 I suspect this is another example of simply running things too close to the wire since in those cases simply putting in a faster RAM always resolves the problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve seen this on three different boards now, and it turns out that certain families of Nichibutsu Mahjong hardware can have problems with colour bleeding and minor visual glitches.\u00a0 For example Club 90&#8217;s and The Lady Hunter both suffer from this, here&#8217;s what a Lady Hunter PCB looks like: The bleeding usually manifests itself as [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":50,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,13],"tags":[],"class_list":["post-2200","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arcade","category-tech"],"_links":{"self":[{"href":"https:\/\/blog.system11.org\/index.php?rest_route=\/wp\/v2\/posts\/2200"}],"collection":[{"href":"https:\/\/blog.system11.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.system11.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.system11.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.system11.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2200"}],"version-history":[{"count":6,"href":"https:\/\/blog.system11.org\/index.php?rest_route=\/wp\/v2\/posts\/2200\/revisions"}],"predecessor-version":[{"id":2968,"href":"https:\/\/blog.system11.org\/index.php?rest_route=\/wp\/v2\/posts\/2200\/revisions\/2968"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.system11.org\/index.php?rest_route=\/wp\/v2\/media\/50"}],"wp:attachment":[{"href":"https:\/\/blog.system11.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.system11.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.system11.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}