{"url":"https://api.github.com/repos/stella-emu/stella/issues/1101","repository_url":"https://api.github.com/repos/stella-emu/stella","labels_url":"https://api.github.com/repos/stella-emu/stella/issues/1101/labels{/name}","comments_url":"https://api.github.com/repos/stella-emu/stella/issues/1101/comments","events_url":"https://api.github.com/repos/stella-emu/stella/issues/1101/events","html_url":"https://github.com/stella-emu/stella/issues/1101","id":3506120735,"node_id":"I_kwDOBCgg987Q-ygf","number":1101,"title":"Missing graphics artifact when changing VDELP + NUSIZ mid-scanline","user":{"login":"splendidnut","id":61911172,"node_id":"MDQ6VXNlcjYxOTExMTcy","avatar_url":"https://avatars.githubusercontent.com/u/61911172?v=4","gravatar_id":"","url":"https://api.github.com/users/splendidnut","html_url":"https://github.com/splendidnut","followers_url":"https://api.github.com/users/splendidnut/followers","following_url":"https://api.github.com/users/splendidnut/following{/other_user}","gists_url":"https://api.github.com/users/splendidnut/gists{/gist_id}","starred_url":"https://api.github.com/users/splendidnut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splendidnut/subscriptions","organizations_url":"https://api.github.com/users/splendidnut/orgs","repos_url":"https://api.github.com/users/splendidnut/repos","events_url":"https://api.github.com/users/splendidnut/events{/privacy}","received_events_url":"https://api.github.com/users/splendidnut/received_events","type":"User","user_view_type":"public","site_admin":false},"labels":[{"id":453306378,"node_id":"MDU6TGFiZWw0NTMzMDYzNzg=","url":"https://api.github.com/repos/stella-emu/stella/labels/bug","name":"bug","color":"ff2020","default":true,"description":"","archived_at":null,"archived_by":null}],"state":"open","locked":false,"assignees":[{"login":"DirtyHairy","id":2444224,"node_id":"MDQ6VXNlcjI0NDQyMjQ=","avatar_url":"https://avatars.githubusercontent.com/u/2444224?v=4","gravatar_id":"","url":"https://api.github.com/users/DirtyHairy","html_url":"https://github.com/DirtyHairy","followers_url":"https://api.github.com/users/DirtyHairy/followers","following_url":"https://api.github.com/users/DirtyHairy/following{/other_user}","gists_url":"https://api.github.com/users/DirtyHairy/gists{/gist_id}","starred_url":"https://api.github.com/users/DirtyHairy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirtyHairy/subscriptions","organizations_url":"https://api.github.com/users/DirtyHairy/orgs","repos_url":"https://api.github.com/users/DirtyHairy/repos","events_url":"https://api.github.com/users/DirtyHairy/events{/privacy}","received_events_url":"https://api.github.com/users/DirtyHairy/received_events","type":"User","user_view_type":"public","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/stella-emu/stella/milestones/2","html_url":"https://github.com/stella-emu/stella/milestone/2","labels_url":"https://api.github.com/repos/stella-emu/stella/milestones/2/labels","id":2710029,"node_id":"MDk6TWlsZXN0b25lMjcxMDAyOQ==","number":2,"title":"Prio 2","description":null,"creator":{"login":"thrust26","id":24360774,"node_id":"MDQ6VXNlcjI0MzYwNzc0","avatar_url":"https://avatars.githubusercontent.com/u/24360774?v=4","gravatar_id":"","url":"https://api.github.com/users/thrust26","html_url":"https://github.com/thrust26","followers_url":"https://api.github.com/users/thrust26/followers","following_url":"https://api.github.com/users/thrust26/following{/other_user}","gists_url":"https://api.github.com/users/thrust26/gists{/gist_id}","starred_url":"https://api.github.com/users/thrust26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thrust26/subscriptions","organizations_url":"https://api.github.com/users/thrust26/orgs","repos_url":"https://api.github.com/users/thrust26/repos","events_url":"https://api.github.com/users/thrust26/events{/privacy}","received_events_url":"https://api.github.com/users/thrust26/received_events","type":"User","user_view_type":"public","site_admin":false},"open_issues":41,"closed_issues":334,"state":"open","created_at":"2017-08-18T17:24:37Z","updated_at":"2026-11-08T07:56:36Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2025-10-11T16:59:07Z","updated_at":"2026-11-03T20:00:56Z","closed_at":null,"assignee":{"login":"DirtyHairy","id":2444224,"node_id":"MDQ6VXNlcjI0NDQyMjQ=","avatar_url":"https://avatars.githubusercontent.com/u/2444224?v=4","gravatar_id":"","url":"https://api.github.com/users/DirtyHairy","html_url":"https://github.com/DirtyHairy","followers_url":"https://api.github.com/users/DirtyHairy/followers","following_url":"https://api.github.com/users/DirtyHairy/following{/other_user}","gists_url":"https://api.github.com/users/DirtyHairy/gists{/gist_id}","starred_url":"https://api.github.com/users/DirtyHairy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirtyHairy/subscriptions","organizations_url":"https://api.github.com/users/DirtyHairy/orgs","repos_url":"https://api.github.com/users/DirtyHairy/repos","events_url":"https://api.github.com/users/DirtyHairy/events{/privacy}","received_events_url":"https://api.github.com/users/DirtyHairy/received_events","type":"User","user_view_type":"public","site_admin":false},"author_association":"CONTRIBUTOR","issue_field_values":[],"type":{"id":5602418,"node_id":"IT_kwDOAXqfJM4AVXxy","name":"Bug","description":"An unexpected problem or behavior","color":"red","created_at":"2024-01-30T08:11:26Z","updated_at":"2024-07-26T11:30:34Z","is_enabled":true},"active_lock_reason":null,"sub_issues_summary":{"total":0,"completed":0,"percent_completed":0},"issue_dependencies_summary":{"blocked_by":0,"total_blocked_by":0,"blocking":0,"total_blocking":0},"body":"This is probably very edge case scenario, but I recently encountered an issue with changing both NUSIZx and VDELPx during a scanline.\n\nI have code where I was changing NUSIZx mid scanline to ADD another sprite for an upcoming scanline.\nThe NUSIZx register store was immediately followed by a VDELPx.\n\nThe code was:\n`\t\tLDY\t\t#3\t\t\t\t;2  [46] -- (switch to 3 players close)`\n`\t\tSTY\t\t<NUSIZ1\t\t\t;3  [49]`\n`\t\tSTY\t\t<VDELP0\t\t\t;3  [52] ---------- need delay`\n\nP1's pixel position is 51 and NUSIZ1 was originally set to 1 (2 players close) before this code was executed.  Cycles times are after each line is executed in Stella.\n\nWhich worked perfectly in Stella... BUT on real hardware, there was a graphical artifact.\n\nI found that the issue was the VDELPx was stored WHILE the sprite was being drawn.... I solved my problem by switching the STY order for those two registers.\n\nI'm not sure whether storing VDELPx before or having NUSIZx changed during the sprite draw, or both, solved the drawing problem.\n\nThis is probably a very RARE issue and will only occur when people are doing tricky things mid-scanline.  But I figured I'd mention it, since it might be helpful to know about when any work is done on the TIA code.","closed_by":null,"reactions":{"url":"https://api.github.com/repos/stella-emu/stella/issues/1101/reactions","total_count":0,"+1":0,"-1":0,"laugh":0,"hooray":0,"confused":0,"heart":0,"rocket":0,"eyes":0},"timeline_url":"https://api.github.com/repos/stella-emu/stella/issues/1101/timeline","performed_via_github_app":null,"state_reason":null,"pinned_comment":null}