BBC BASIC
« *DISPLAY »

Welcome Guest. Please Login or Register.
Sep 24th, 2017, 01:25am


Cross-platform BBC BASIC (Win32, Linux x86, Android, Mac OS-X, Raspberry Pi)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: *DISPLAY  (Read 54 times)
michael
Junior Member
ImageImage


member is offline

Avatar




PM


Posts: 94
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: 587
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 »

Donate $6.99 for 50,000 Ad-Free Pageviews!


This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls