BBC BASIC
« *DISPLAY »

Welcome Guest. Please Login or Register.
Mar 31st, 2018, 10:43pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Cross-platform BBC BASIC (Windows, Linux x86, Mac OS-X, Android, iOS, Raspberry Pi)
BBC BASIC Resources
BBC BASIC Help Documentation
BBC BASIC for Windows Home Page
BBC BASIC Programmers' Reference
BBC BASIC Beginners' Tutorial
BBC BASIC for SDL 2.0 Home Page
BBC BASIC Discussion Group

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: *DISPLAY  (Read 297 times)
michael
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 157
xx *DISPLAY
« Thread started on: Aug 20th, 2017, 9:34pm »

How large can I make an image that *DISPLAY would load onto the screen? I was thinking of making a scrolling background for a game.
User IP Logged

I like reinventing the wheel, but for now I will work on tools for D3D
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 803
xx Re: *DISPLAY
« Reply #1 on: Aug 20th, 2017, 11:08pm »

on Aug 20th, 2017, 9:34pm, michael wrote:
How large can I make an image that *DISPLAY would load onto the screen? I was thinking of making a scrolling background for a game.

I don't think there's a fixed limit, it would depend on things like amount of memory, how fast you need it to load and so on (version of Windows might be an issue too).

You also need to take into account how you propose to do the scrolling. If your intention is to *DISPLAY the image just once, and then scroll it using the @ox% and @oy% variables, the default size limit is 1920x1440 pixels in BB4W (bigger in BBCSDL). That can be increased but at the cost of complexity. Scrolling this way is very fast.

If however you plan to do the scrolling by repeating the *DISPLAY with different origin coordinates, there's no particular size limit but it won't be anything like as fast as the previous method.

Any seriously large scrolling background would need to be implemented as tiles for performance reasons in any case.

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls