Author Topic: How quick is Axe?  (Read 8625 times)

0 Members and 1 Guest are viewing this topic.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
How quick is Axe?
« on: September 13, 2010, 07:18:14 pm »
I think a lot of my Axe programming may be limited by my tendency to use BASIC.
Could someone just tell me how fast Axe is?

Thanks.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: How quick is Axe?
« Reply #1 on: September 13, 2010, 07:18:57 pm »
Extremely Fast.  I wish you luck on learning it. :)
« Last Edit: September 13, 2010, 07:19:28 pm by ztrumpet »

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: How quick is Axe?
« Reply #2 on: September 13, 2010, 07:21:21 pm »
very fast. slower than asm; granted; but axe is compiled into z80 ASM code... it's just that axe is built to be general-purpose, for all sorts of games, while an asm game would use routines designed specifically for the type of game their making. axe can be as fast as ASM, though.


Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: How quick is Axe?
« Reply #3 on: September 13, 2010, 07:21:58 pm »
So fast that if you use getKeys (to increment an number, for example), you have to use delays to make sure that you don't overshoot by pressing too long.

You know, for example.
« Last Edit: September 13, 2010, 07:26:34 pm by Michael_Lee »
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: How quick is Axe?
« Reply #4 on: September 13, 2010, 07:22:08 pm »
A lot of stuff is pretty much the same speed as z80 assembly, or very close. The code in general is a bit larger than BASIC, but data is considerably smaller. The reason why it's so fast is because the compiler translates the code to something extremly close to optimized ASM and the fact it is compiled instead of interpreted makes it even faster than something like BBC Basic, for example.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: How quick is Axe?
« Reply #5 on: September 13, 2010, 07:23:37 pm »
Much of Axe's speed is not just because of its being compiled into asm, but also because of its efficiency.  What this means that it you convert a basic game directly to axe with no modifications to the code, it will be faster.  If you recode it from scratch using axe concepts, it will be many more times faster.

That being said, Axe is crazy fast ;D

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: How quick is Axe?
« Reply #6 on: September 13, 2010, 07:27:04 pm »
So fast that there's no reason to learn ASM if you have trouble with it.  I wouldn't be surprised if half the new games on ticalc.org were written in Axe

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: How quick is Axe?
« Reply #7 on: September 13, 2010, 07:27:16 pm »
Amazingly fast

Code: [Select]
0->A
While A<1000
Output(1,1,A
A+1->A
End
Try that in basic and with Axe try

Code: [Select]
.Some name that you don't have a program named already
0->A
While A<1000
Output(1,1,A >Dec
A+1->A
End

See what happens
« Last Edit: September 13, 2010, 07:28:09 pm by guy6020665 »

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: How quick is Axe?
« Reply #8 on: September 13, 2010, 07:31:49 pm »
Ya, it's crazy fast. It's basically what Nemo said though. Axe is technically just as fast as assembly since it is compiled into it. The reason it can appear to be a little slower is because the routines are generalized for overall game making, again like Nemo said. What could take a few lines in assembly (this is strictly concept, not example) since it is directly for the purpose of the game might take a twice as much in Axe since the manipulating is using multiple things to create the effect.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: How quick is Axe?
« Reply #9 on: September 13, 2010, 07:42:44 pm »
Do not refresh the display every sprite, though. Refresh it once per loop, else prepare for extreme slowness, thanks to TI crappy LCD driver. I am sure if TI-BASIC didn't update the display everytime something gets displayed it would be much faster (although not even close to Axe)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: How quick is Axe?
« Reply #10 on: September 13, 2010, 07:47:23 pm »
Yeaah, i once had an idea to write hooks that overwrote the graphics commands (there really arnt that many) to draw only to the buffer, and use another token to refresh.  And with very small modification Basic programs could run even faster!  And if it was a token like real(0), the Basic program could even be run without the hooks for normal effect, and then if you wanted to, you could install the graphics hook and much faster :D

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: How quick is Axe?
« Reply #11 on: September 13, 2010, 07:55:09 pm »
Craaazy fast. It's basically unoptimized ASM speed.
« Last Edit: September 13, 2010, 07:55:19 pm by Deep Thought »




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: How quick is Axe?
« Reply #12 on: September 13, 2010, 08:20:31 pm »
I wouldn,t say unoptimized, personally. I am sure Axe games for the most part could run much faster than most old ASM stuff on ticalc.org

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: How quick is Axe?
« Reply #13 on: September 13, 2010, 08:26:58 pm »
I wouldn,t say unoptimized, personally. I am sure Axe games for the most part could run much faster than most old ASM stuff on ticalc.org

Unoptimized means you didn't make sure your program could run as fast (and as small) as possible.  If an Axe game runs faster than an old ASM program on the same calculator, the ASM program was not optimized.  I'm afraid I have to agree with Deep Thought here.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: How quick is Axe?
« Reply #14 on: September 13, 2010, 08:28:39 pm »
Yeah but I mean, I am fairly sure that for a RPG, you can get much faster speed than Joltima for smooth scrolling. In Joltima, it scrolls by 2 pixel interval instead of 1. Axe won't be as fast as ASM but it will sure be faster than some old stuff I saw back in the days, made back when there was little z80 documentation available.