To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > General Help > Games

Reply
 
Thread Tools Search this Thread Display Modes
Old 12-04-2007, 04:16 AM   #1
ignignokt
Junior Member
 
Join Date: Dec 2007
Posts: 2
[F9 CS3] Jaggies flickering when scrolling: Is this a Flash issue or just perception?

I'm scrolling a bitmap that has intentional jaggies in it. They're diagonal waves drawn with blocks that are 4x4 pixels each. They look like the hills from <a href="http://vgmaps.com/Atlas/NES/SuperMarioBros2-World1-Area1.png">here</a>, except four times as large. When I scroll them by at 8 pixels per frame, the areas that are heavy with jaggies look like they're flickering.

I was considering doing some form of double buffering with this, but when I think about it I doubt it'd help.

Any ideas on how to get them to not flicker?

I've tried increasing the frame rate, but that doesn't seem to matter.

Slowing the rate of scrolling drastically stops the flickering, but that's not an option.
ignignokt is offline   Reply With Quote
Old 12-04-2007, 10:33 AM   #2
iopred
Heli Attack!
 
iopred's Avatar
 
Join Date: Jun 2003
Location: Sydney, Australia
Posts: 923
I think what you're seeing is tearing. And it can't be fixed, there is no way to vsync Flash atm.
__________________
Christopher Rhodes
squarecircleco.
iopred is offline   Reply With Quote
Old 12-04-2007, 06:09 PM   #3
Ray Beez
Senior Member
 
Ray Beez's Avatar
 
Join Date: Jun 2000
Posts: 2,692
That's an inherent optical effect from unsyncronized displays. Even with syncronization (Vsync iopred mentioned) you can still get the effect appearing based on the amount of scroll. For example on the TV console game systems, if you scrolled a level by multiples of 2 (ie, shift the screen by 1, 2, 4, 8 etc pixels) each screen refresh, the effect would look perfectly smooth. But if you used a value like 3, 5, 6, 7 etc it looked blurry/jerky.

Weird but true.
Ray Beez is offline   Reply With Quote
Old 12-04-2007, 06:51 PM   #4
ignignokt
Junior Member
 
Join Date: Dec 2007
Posts: 2
Thanks, guys. I suspected as much. At least I know I can give up on having the jaggies in the bitmap now.
ignignokt is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > General Help > Games

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 -4. The time now is 08:55 AM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.