• April 22, 2019, 04:05:57 AM
  • Welcome, Guest
Advanced search  

News:

Author Topic: Starfield  (Read 1960 times)

Flash

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 13176
Starfield
« on: February 10, 2013, 08:44:39 PM »

I found this scrap of code. I must have made several revisions to it, each time counting the clock cycles to try and get the fastest code I could. I believe this plotted individual stars to a block of character tiles (much like my DS starfield test
cxsRA)

Anyway, check it out lol... (christ I really was ANAL)
Logged
Coding for the love of it!

Sokurah

  • RBP Member
  • Cray-1 Super Computer
  • *****
  • Offline Offline
  • Posts: 721
    • Tardis Remakes
Re: Starfield
« Reply #1 on: February 10, 2013, 09:26:46 PM »

I must have made several revisions to it, each time counting the clock cycles to try and get the fastest code I could.
Nerdy?...anal?...perhaps, but that's what one needed to do if you wanted the best results.

...or so I'm told. :) :)

Btw, I've started work on a new Spectrum game, and that runs currently way too slow (and it's only a bloody puzzle game), but I'll optimize and rewrite as I go along.  ;D
Logged

Flash

  • Administrator
  • Blue Gene Super Computer
  • **********
  • Offline Offline
  • Posts: 13176
Re: Starfield
« Reply #2 on: February 10, 2013, 09:39:11 PM »

A spectrum puzzle game - intrigued!

It is amazing how much you can speed up ASM code with a bit of 'fiddling' though.
Logged
Coding for the love of it!

Sokurah

  • RBP Member
  • Cray-1 Super Computer
  • *****
  • Offline Offline
  • Posts: 721
    • Tardis Remakes
Re: Starfield
« Reply #3 on: February 10, 2013, 10:34:49 PM »

Yeah, putting a bit of thought into your coding can make a lot of difference. I rarely make very efficient code from the start though (he said as if he'd done a load of games in assembler) - early on I focus on getting the framework right and things on the screen, and then later when I can move things around and see them working I start optimising.

On this project I'm drawing on a backbuffer and moving that to the screen area, and that is pretty slow the way it is right now - which is slowing things down, but I'm expecting to get a 100% speed increase on that routine once I put my mind to it.
...the little mind I have. :)

Yeah, well, so...a bit of 'fiddling' can make a bit difference. ;)
Logged