English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 24 October 2021, 23:35   #1
chadderack
Registered User
 
chadderack's Avatar
 
Join Date: Jul 2021
Location: Sandy, UT
Age: 55
Posts: 230
sprite flicker

Probably something basic. I've never enabled them before.

video demonstrates issue.

(The text in the upper left)

It actually flickers much faster than the video can capture; pretty much one frame on/one frame off.

Single playfield... BPLCON2 is set in the copper to $0024... but it doesn't seem like any value stops the flickering.
DMACON is set like this

Code:
    move.w #$87E0,DMACON(a6)
Thank you for any help!
Chad
chadderack is offline  
Old 24 October 2021, 23:59   #2
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,098
How, or rather when, do you setup the sprite pointers? They need to be ready for line 25 (PAL) or 20 (NTSC) (http://eab.abime.net/showpost.php?p=...&postcount=200).
paraj is offline  
Old 25 October 2021, 00:09   #3
chadderack
Registered User
 
chadderack's Avatar
 
Join Date: Jul 2021
Location: Sandy, UT
Age: 55
Posts: 230
Quote:
Originally Posted by paraj View Post
How, or rather when, do you setup the sprite pointers? They need to be ready for line 25 (PAL) or 20 (NTSC) (http://eab.abime.net/showpost.php?p=...&postcount=200).
Good to know! Thanks.
The wait at the beginning of the copperlist is this

Code:
    dc.w $2b01,$fffe
this is set a few lines later

Code:
    dc.w BPLCON2,$0024                                      ;move.w #$24,BPLCON2(a6)
and the pointers are set further down. I checked WinUAE debugger with watchpoints on the pointer locations in the copperlist, and the debugger never hit the watchpoints... which means to me that they remain the same--they aren't zeroed out.
chadderack is offline  
Old 25 October 2021, 00:33   #4
paraj
Registered User
 
paraj's Avatar
 
Join Date: Feb 2017
Location: Denmark
Posts: 1,098
Does the flickering stop if you set the pointers before your first wait? VPOS 0x2b is too late if you want easy, automatic mode for your sprites.

Also while it doesn't hurt, there's no reason to delay setting BPLCON2 until that point either (and you probably don't need to set it every frame, but that's probably premature optimization). In general I'd want to get as much as possible out of the way early in the copper list, unless it really needs to happen at a specific point.
paraj is offline  
Old 25 October 2021, 00:44   #5
chadderack
Registered User
 
chadderack's Avatar
 
Join Date: Jul 2021
Location: Sandy, UT
Age: 55
Posts: 230
Quote:
Originally Posted by paraj View Post
Does the flickering stop if you set the pointers before your first wait? VPOS 0x2b is too late if you want easy, automatic mode for your sprites.

Also while it doesn't hurt, there's no reason to delay setting BPLCON2 until that point either (and you probably don't need to set it every frame, but that's probably premature optimization). In general I'd want to get as much as possible out of the way early in the copper list, unless it really needs to happen at a specific point.
Oh, I see what you mean. They need to be initialized *before* the wait. Let me try that
chadderack is offline  
Old 25 October 2021, 00:47   #6
chadderack
Registered User
 
chadderack's Avatar
 
Join Date: Jul 2021
Location: Sandy, UT
Age: 55
Posts: 230
Quote:
Originally Posted by paraj View Post
Does the flickering stop if you set the pointers before your first wait?
Yes! Thank you!

https://www.dropbox.com/s/88imiuxcl1..._gone.mp4?dl=0
chadderack is offline  
Old 25 October 2021, 11:38   #7
Leo24
Registered User
 
Join Date: May 2017
Location: Sao Paulo
Posts: 17
New Black Tiger port?
Leo24 is offline  
Old 25 October 2021, 12:16   #8
chadderack
Registered User
 
chadderack's Avatar
 
Join Date: Jul 2021
Location: Sandy, UT
Age: 55
Posts: 230
Quote:
Originally Posted by Leo24 View Post
New Black Tiger port?
chadderack 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
Flicker fixing d3cka2d3pwood support.Hardware 6 08 August 2018 10:08
Flicker fixer Megamix MarketPlace 4 26 June 2010 00:01
1084S flicker enito support.Hardware 15 14 March 2008 08:55
Flicker trouble steve88 New to Emulation or Amiga scene 16 02 January 2008 23:47
FS: Scandoubler/Flicker Fixer DCE Flicker Magic lopos2000 MarketPlace 15 23 October 2007 11:18

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 13:33.

Top

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