Programming in BASIC on the Color Computer - Optimizing GET and PUT for the Spaceship demo
ogStevieStrow
Not happy with the most recent Spaceship demo I created and released, I decided to optimize the GET and PUT routines to speed up the flying on the screen, I also took time to redesign the spaceship to make it look cooler, and improve the planet generation routine.
I'm using the "FAST GET" and "FAST PUT" option, which require you to GET your graphics in even byte boundaries, that would be blocks of 8 pixels wide for monochrome, and 4 pixels wide for color.
If you get an even byte width object, and you PUT it at even byte boundaries (every 8 pixels) you can PUT twice as fast by not forcing the computer to calculate what bits shifted between various bytes.
You are allow your computer to process bytes rather than transfer data at a bit level, which is much faster.
If you'd like to download this demo to try it yourself, you can get the disk image from my blog post: http://ogsteviestrow.com/optimizing-my-spaceship-demo-with-the-fast-get-and-put-techniques/
If you'd like to make a donation use this link: https://youtube.streamlabs.com/ogsteviestrow If you tip during a live stream, your name will appear on screen, thanks!
Thanks for watching, don't forget to like, comment, and subscribe!
Merchandise: http://ogsteviestrow.com/merchandise YouTube: https://youtube.com/ogsteviestrow Facebook: https://www.facebook.com/ogsteviestrow/ Twitter: https://twitter.com/ogsteviestrow Instagram: https://www.instagram.com/ogsteviestrow/ Website: http://ogsteviestrow.com
Pixel art and logos created by Joel M. Adams: https://www.instagram.com/artistjoelmadams/
OG Theme Song by the Gimp of Hallowed Ground Records: https://www.reverbnation.com/gordy669
Original Music by Fran Mann and Side Seat Driver used with permission: https://www.reverbnation.com/franmann
Music from the album Pac-Man Fever used with permission: http://pacmanfevervault.com/ ... https://www.youtube.com/watch?v=HkM5hvncWuY
67285549 Bytes