Jump to content
IGNORED

Does a larger const pfres mean less time for other things?


Random Terrain

Recommended Posts

Seems like it would, but I'm asking just to make sure. Does const pfres=31 take up more time than const pfres=23? I moved up to const pfres=31 to see what would happen and now my program is going over 262. Seems like the larger resolution is stealing time from my bB code.

 

If it's true that larger resolutions take more time, can anything worth playing be done using const pfres=31? Looks like I'm stuck with const pfres=23 or smaller.

Link to comment
Share on other sites

It shouldn't mean less time for other things. If it's going over 262 than its a bug, either in your code or in bB.

 

Are you using playfield: to set things up? I'm getting some glitches with a test program that suggests it's overwriting memory elsewhere, but I don't think I updated to the last beta so it may alread be fixed.

 

Does this display the usual score=000000 for you?

 

const pfres=16

scorecolor=$0f

playfield:
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
end

mainloop
COLUPF=$18
drawscreen
goto mainloop

Link to comment
Share on other sites

Here's what it looks like:

 

post-13-0-30599800-1338788281_thumb.png

 

 

I was using the beta version of bB, but it wasn't acting right, so I switched back to an older version of bB. I'm not sure what version it is or what has been fixed. I think it is the one that is in the 64-bit folder in the VbB thread.

 

In case you want to know what was messing up, check out the following program.

 

 

Move the joystick up and see what happens. That's how it's supposed to work:

 

ex_scrolling_2012y_05m_21d_1655t.bin

 

 

Now do the same with this one and notice the odd changes that are happening on the screen:

 

ex_scrolling_2012y_06m_04d_0152t.bin

Link to comment
Share on other sites

Thanks. Here's what it looks like:

 

post-13-0-30599800-1338788281_thumb.png

 

 

I was using the beta version of bB, but it wasn't acting right, so I switched back to an older version of bB. I'm not sure what version it is or what has been fixed. I think it is the one that is in the 64-bit folder in the VbB thread. (I switched back to the beta version just to try your test program, but I got the same result.)

 

In case you want to know what was messing up, check out the following program.

 

 

Move the joystick up and see what happens. That's how it's supposed to work:

 

ex_scrolling_2012y_05m_21d_1655t.bin

 

 

Now do the same with this one and notice the odd changes that are happening on the screen:

 

ex_scrolling_2012y_06m_04d_0152t.bin

 

The second one, compiled with the beta version, seems to randomly add and delete playfield pixels as the screen scrolls up.

Link to comment
Share on other sites

I get the same result as you, so I think its likely a bB bug. It seems the address used for the playfield is wrong if pfres is used - I think having some of your variables overwritten caused your scanline count problems.

 

I expect this happened when batari added "mirror playfield" capability to the standard kernel. I'll report it in the bug thread later. (Posting from a cell right now)

  • Like 1
Link to comment
Share on other sites

I get the same result as you, so I think its likely a bB bug. It seems the address used for the playfield is wrong if pfres is used - I think having some of your variables overwritten caused your scanline count problems.

 

I expect this happened when batari added "mirror playfield" capability to the standard kernel. I'll report it in the bug thread later. (Posting from a cell right now)

 

Thanks.

 

 

 

Also worth mentioning that if you're scrolling, then a large pfres CAN cause a scanline issue, since scrolling involves copying the playfield memory.

 

In the version of the program I'm working on now, I scroll the screen up one notch so the platforms touch the feet of the little guy. Would scrolling only once cause a problem?

Link to comment
Share on other sites

Thanks.

 

Not a problem. The bug report has been submitted.

 

In the version of the program I'm working on now, I scroll the screen up one notch so the platforms touch the feet of the little guy. Would scrolling only once cause a problem?

 

Nope. If you see scanline issues as a result of scrolling, you'd only see them when then scroll position is updated, and even then only when a coarse-scroll eventually happens.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...