Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Why is my scroll jumpy?

Reply to topic
Author Message
  • Joined: 21 Aug 2021
  • Posts: 41
Reply with quote
Why is my scroll jumpy?
Post Posted: Tue Aug 31, 2021 4:11 pm
I'm writing a little game for the Master System.

I'm finding my way with the help of you guys, and have already learned a lot of things.

But now I am having another problem with the scroll functionality.

Whenever I move the hero in a direction that causes the screen to scroll, the actual scrolling looks jumpy.
The screen moves to where it should, but it looks like it's "shaking".

I wonder if I should only update the tile map during the v-blank or something like that.

Here's a short video that shows the problem:



Can you guys help me out - again :) - ?

Cheers
  View user's profile Send private message
  • Joined: 23 Aug 2009
  • Posts: 213
  • Location: Seattle, WA
Reply with quote
Post Posted: Tue Aug 31, 2021 4:42 pm
ruibjr wrote

I wonder if I should only update the tile map during the v-blank or something like that.


Yep!
  View user's profile Send private message
  • Joined: 08 Sep 2018
  • Posts: 270
Reply with quote
Post Posted: Tue Aug 31, 2021 7:53 pm
ruibjr wrote
I wonder if I should only update the tile map during the v-blank or something like that.


definitely like 95% of the time anything you do with the VDP needs to be done during VBLANK.
There are extremely special cases for doing stuff during the frame draw period and usually those are done during a line interrupt.
  View user's profile Send private message
  • Joined: 21 Aug 2021
  • Posts: 41
Reply with quote
Post Posted: Tue Aug 31, 2021 8:07 pm
Wow!

It works.
Thanks for the tip.

Cheers!
  View user's profile Send private message
Reply to topic



Back to the top of this page

Back to SMS Power!