BBC BASIC
« Creating Bitmap »

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



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: Creating Bitmap  (Read 289 times)
MarsFS
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 16
xx Re: Creating Bitmap
« Reply #8 on: Nov 1st, 2017, 12:42am »

Thanks Richard.

Up to now I have been using temp files and it has been working fine.

The person I am writing the application for was trying it out on various (old) hardware and had an issue with a certain low spec machine that was taking 1-2 seconds to save the temp file which made the program unusable.

I was just exploring an alternative approach to see if it made any difference, which it did in this case so now the person can continue to use the program on his preferred device.

I guess if I was really motivated I would just rewrite the whole thing in C and be done with it but part of fun was having a BBC Basic version of the program as that is where this whole project started.

It's been interesting to see how far we could take a basic program but really it's becoming more and more departed from what it was when it started a while back.

Thanks for the advice... if anyone interested feel free to have a look at the current code and offer any further tips.

https://github.com/marsFS/ART-4-Windows
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 803
xx Re: Creating Bitmap
« Reply #9 on: Nov 1st, 2017, 09:51am »

on Nov 1st, 2017, 12:42am, MarsFS wrote:
a certain low spec machine that was taking 1-2 seconds to save the temp file

Taking 'seconds' is almost unbelievable. I've measured the time it takes to save a 640x512 window on my two slowest machines, an ancient Windows 95 (yes, really!) PC and the Raspberry Pi: they were 230 ms and 100 ms respectively. On the modern laptop I'm using to write this, it was 6 ms!

Quote:
I guess if I was really motivated I would just rewrite the whole thing in C and be done with it

Graphics operations are almost invariably dominated by the OS and the GPU, not by the programming language used. Writing it in C would probably make no discernable difference to the speed.

Richard.
User IP Logged

KenDown
New Member
Image


member is offline

Avatar




PM


Posts: 49
xx Re: Creating Bitmap
« Reply #10 on: Feb 18th, 2018, 08:55am »

One possible explanation might be if the computer in question is a laptop and turns the hard drive off after every access - I had one that did that. You had to wait for the drive to come up to speed before any read or write. Most frustrating!
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