Date   

Re: In-browser BBC BASIC for SDL 2.0

Dagfinn
 

I prefer it with Touch IDE, it is easier to get started and more self-contained. Works well as far as I can see!


On Sat, Sep 26, 2020 at 12:42 AM Richard Russell <news@...> wrote:
On Thu, Sep 24, 2020 at 11:39 PM, Richard Russell wrote:
Would it be better for it instead to run the 'touch IDE' at start-up, as do the Android and iOS editions?
There's been disappointingly little feedback, but what I have received has been positive so I've made the change experimentally. Here is the revised version, let me know what you think (if you're not familiar with the Touch IDE there's a brief description here). I can easily switch it back to how it was if necessary.


Re: In-browser BBC BASIC for SDL 2.0

mclout@...
 

Very nice and makes it a lot more user friendly.  


Re: In-browser BBC BASIC for SDL 2.0

Richard Russell
 

On Thu, Sep 24, 2020 at 11:39 PM, Richard Russell wrote:
Would it be better for it instead to run the 'touch IDE' at start-up, as do the Android and iOS editions?
There's been disappointingly little feedback, but what I have received has been positive so I've made the change experimentally. Here is the revised version, let me know what you think (if you're not familiar with the Touch IDE there's a brief description here). I can easily switch it back to how it was if necessary.


Re: In-browser BBC BASIC for SDL 2.0

Dagfinn
 

I think that would be worth trying!

Dagfinn

On Fri, Sep 25, 2020 at 12:40 AM Richard Russell <news@...> wrote:
The in-browser edition currently starts up at the immediate-mode prompt if no URL parameter is specified; to run the supplied example programs you must change directory (e.g. *cd examples/graphics) and then CHAIN the program you want. Would it be better for it instead to run the 'touch IDE' at start-up, as do the Android and iOS editions (despite its name it can be used with a keyboard and mouse)?


Re: In-browser BBC BASIC for SDL 2.0

Richard Russell
 

The in-browser edition currently starts up at the immediate-mode prompt if no URL parameter is specified; to run the supplied example programs you must change directory (e.g. *cd examples/graphics) and then CHAIN the program you want. Would it be better for it instead to run the 'touch IDE' at start-up, as do the Android and iOS editions (despite its name it can be used with a keyboard and mouse)?


Re: In-browser BBC BASIC for SDL 2.0

Richard Russell
 

The latest program to be ported to the in-browser edition of BBC BASIC is mandel which displays the Mandelbrot Set and allows you to pan and zoom it. This runs best in Firefox, in the other browsers it occasionally crashes with a 'WebGL context lost' error (as it works in Firefox I assume this is not my fault!).


Re: In-browser BBC BASIC for SDL 2.0

Richard Russell
 

On Wed, Sep 23, 2020 at 08:42 AM, Dagfinn wrote:
Cute! Runs very smoothly. It even has touch controls :-)
 
You should already have been familiar with this game and its controls, it has been supplied as an example program with every edition of BBC BASIC for SDL 2.0 for about two years!  None of the in-browser demos are new, they are all ports of existing programs which I would have hoped everybody here has already run.


Re: In-browser BBC BASIC for SDL 2.0

Dagfinn
 

Cute! Runs very smoothly. It even has touch controls :-)

Dagfinn

On Tue, Sep 22, 2020 at 10:36 PM Andrew Cool <andrew@...> wrote:
Ah, well that works nicely. Though my fingers are clearly not linked to my brain...

Andrew


Re: In-browser BBC BASIC for SDL 2.0

Andrew Cool
 

Ah, well that works nicely. Though my fingers are clearly not linked to my brain...

Andrew


Re: In-browser BBC BASIC for SDL 2.0

Richard Russell
 

Here's another of David Williams's games which runs nicely in a suitable browser: Rainbow Snake.

Something to note: if you use SYS "SDL_SetWindowTitle" ensure that you include @memhdc% as the last parameter; that's necessary anyway for it to work reliably in MacOS but the in-browser edition crashes if you don't!


Re: Tyoob online! (BBC BASIC stress test)

dch_control
 

It works fine for me (with sound) on Firefox 80.0.1 (64-bit) under Windows 7 on a 4G broadband connection of roughly 20MB/s up and down.

 

DCH_Control.


Re: Tyoob online! (BBC BASIC stress test)

Richard Russell
 

On Sat, Sep 19, 2020 at 12:43 AM, Rob O'Donnell wrote:
Working fine on Opera 70.0.3728.189 under Windows 10,
That's interesting, since the table here suggests that it shouldn't.  So I tried it and, yes, it does run but... no sound!  Do you get sound?  The game just isn't the same without the music and sound-effects...


Re: Tyoob online! (BBC BASIC stress test)

Richard Russell
 

On Sat, Sep 19, 2020 at 04:25 AM, Andrew Cool wrote:
Masssively slower downloading via the browser, and presumably hitting your 20 second timeout.
Open your network log (in Edge: 'Settings... More tools... Developer tools... Network') then attempt the download again.  It should tell you what is happening.


Re: Tyoob online! (BBC BASIC stress test)

Andrew Cool
 

Downloading the BBC link on Edge takes about 40 seconds until the Preparing info gives way to the
Unable to download.... error message.

Masssively slower downloading via the browser, and presumably hitting your 20 second timeout.

The Internet pipe to Europe and the UK from Australia is quite thin. To the USA is far fatter.

A ping to London comes in at 305ms, 350 to Frankfurt.

Andrew



Andrew


Re: Tyoob online! (BBC BASIC stress test)

Andrew Cool
 

Well the 8.24MB file http://www.rtr.myzen.co.uk/tyoob_resources.dat downloads in 1 second, according to the file properties.

Created,Modified and Accessed all have the same time stamp.

Which doesn't surprise me. I typically achieve 10-12MBs download speeds.
The browser is slower. It reports Downloading, Preparing, Downloads Complete, and then after 2-3 seconds:-

Unable to download http://www.rtr.myzen.co.uk/tyoob_resources.dat",

The various demo programs work fine in my browsers.

Given that I have tyoob_resources.dat on my hard drive, can I access that from the browser to run the program?

Andrew


Re: Tyoob online! (BBC BASIC stress test)

Richard Russell
 

On Fri, Sep 18, 2020 at 10:32 PM, Andrew Cool wrote:
Firefox, Edge and Chrome all report "Unable to download
It's a timeout.  I allow 20 seconds, which I hoped would be long enough but evidently isn't in your case.  Try downloading that file separately to see how long it really does take.

> Too many thousands of users downloading at once?

No, but the file is stored at the free web space provided by my ISP so the bandwidth is limited.

The feedback I've had so far suggests that there is no interest in the in-browser edition of BBC BASIC anyway, the feeling seems to be that it's a complete waste of time and has no purpose. :(


Re: Tyoob online! (BBC BASIC stress test)

Lindsay
 

Working well in Microsoft Edge on Windows 10.

Well done.


Re: Tyoob online! (BBC BASIC stress test)

Rob O'Donnell
 

Working fine on Opera 70.0.3728.189 under Windows 10, if a little slow when there's a lot happening on screen, but that'll be down to my laptop,

Sorry it's taken me until now to get to try it, it doesn't work (as noted) on Chrome or Opera on Android.

Rob

On Fri, 18 Sep 2020 at 22:32, Andrew Cool <andrew@...> wrote:
Hmmm. Firefox, Edge and Chrome all report "Unable to download http://www.rtr.myzen.co.uk/tyoob_resources.dat", despite some furious activity
on my network meter. (100Mbps+ )

Too many thousands of users downloading at once?

Andrew


Re: Tyoob online! (BBC BASIC stress test)

Andrew Cool
 

Hmmm. Firefox, Edge and Chrome all report "Unable to download http://www.rtr.myzen.co.uk/tyoob_resources.dat", despite some furious activity
on my network meter. (100Mbps+ )

Too many thousands of users downloading at once?

Andrew


Re: Tyoob online! (BBC BASIC stress test)

Dagfinn
 

Wow, I really am amazed! Even sound :-)

Very good!

Dagfinn

On Thu, Sep 17, 2020 at 8:16 PM Richard Russell <news@...> wrote:
As the 'ultimate' test of the in-browser edition of BBC BASIC for SDL 2.0 I've ported David Williams's prizewinning Tyoob game to that platform. This is a fully-functional, no compromise, version to demonstrate just what can be achieved.  It needs a fast PC and a reasonable internet connection to get the best results, but here it manages a fairly consistent 30 fps. This is pure BBC BASIC (no assembler) of course.

To try it you'll need an up-to-date (desktop) version of Google Chrome, Microsoft Edge or Mozilla Firefox (if you have a choice, it seems to run slightly more smoothly in Firefox than the other two, for whatever reason). If you have a suitable setup, click here and prepare to be amazed!