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!
Tyoob online! (BBC BASIC stress test)
Re: Tyoob online! (BBC BASIC stress test)
Wow!
Code: Select all
$ bbcbasic
PDP11 BBC BASIC IV Version 0.45
(C) Copyright J.G.Harston 1989,2005-2024
>_
Re: Tyoob online! (BBC BASIC stress test)
Wow! indeed.
Lee.
Lee.
Re: Tyoob online! (BBC BASIC stress test)
That's really impressive, Richard!
Re: Tyoob online! (BBC BASIC stress test)
David Williams should take most of the credit, I simply ported it from BBC BASIC for Windows to BBC BASIC for SDL 2.0. It's a good example of a program which needed assembler code (or C) to achieve acceptable performance in BB4W, but doesn't in BBCSDL because it's backed by a hardware-accelerated 2D graphics engine (SDL2).
It's also fortuitous that the rings that make up the 'tube' are drawn as lots of small dots, this lent itself to being rendered using the SDL_RenderFillRects function. Had David not run out of time (it was a contest submission and won 2nd Prize) he planned for the later levels to be drawn with different shapes: that would have made a pure BASIC implementation impractical!
Re: Tyoob online! (BBC BASIC stress test)
That is very impressive .....to see it work in the web browser as well...good show.
- dominicbeesley
- Posts: 2210
- Joined: Tue Apr 30, 2013 12:16 pm
- Contact: