English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General > Coders. Tutorials

 
 
Thread Tools
Old 23 June 2009, 13:24   #1
pmc
rebooting...
pmc's Avatar
 
Join Date: Apr 2007
Location: Elsewhere
Posts: 1,595
Flickering sine scroller

Watcha boys.

Sorry to be asking for help *again* but...

I've been playing around with updating my sine scroll source into more of a proper sine scroll intro - source code (non dbl buf version) attached.

Problem is that the actual sine scroll flickers big style.

My first thought was double buffering was needed. However, I tried adding double buffering and it made no difference so I took it out again.

Now, I know that my sine scroll routine when it was running on its own worked OK without double buffering, certainly while it was a four pixel sinus copy anyway but this one won't.

There's a couple of other things going on in this intro (scrolling logo, some copper colour poking and music playing) but I don't think it's those things causing the problem cos if I turn them off the sine scroll still flixx0rs all to shit.

Anyone got any ideas what stoopid thing I'm doing wrong this time?

EDIT: bugged code attachment removed.

Last edited by pmc; 24 June 2009 at 08:09.
pmc is offline  
Old 23 June 2009, 14:25   #2
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,099
Check if you fetch the right values from the sintable, looks like your sintab ptr gets trashed somewhere to me. Don't have time to check the code atm though.
StingRay is online now  
Old 23 June 2009, 14:39   #3
pmc
rebooting...
pmc's Avatar
 
Join Date: Apr 2007
Location: Elsewhere
Posts: 1,595
Cheers Stingray - I'll check.
pmc is offline  
Old 24 June 2009, 08:08   #4
pmc
rebooting...
pmc's Avatar
 
Join Date: Apr 2007
Location: Elsewhere
Posts: 1,595
Quote:
Originally Posted by StingRay View Post
Check if you fetch the right values from the sintable, looks like your sintab ptr gets trashed somewhere to me.
Had some time this morning so I changed the routine for reading in the sin values and... no more flickering sine scroll text.

StingRay, I'm starting to think you're a Jedi.

You've reached a higher plane where you 'feel' the errors in code!

Last edited by pmc; 24 June 2009 at 09:34.
pmc is offline  
Old 24 June 2009, 09:19   #5
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,099
Wasn't that hard to guess actually, characters seemed to appear at random y-positions and since the position is read from the sintable that was my first guess. =)
StingRay is online now  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sine scroller pmc Coders. Tutorials 95 02 July 2017 16:40
Help with a sine effect bobster Coders. Tutorials 16 17 October 2012 12:11
Sine scroller - dycp blazeb Coders. Asm / Hardware 6 02 May 2012 10:08
Help with sine regression Ed Cruse Coders. General 14 30 June 2008 01:15

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 10:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06034 seconds with 13 queries