On-Calc handwriting

Got a brilliant program idea? Let us know!

Moderator: MaxCoderz Staff

User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

I didn't bother doing those optimizations because they only optimize for size, but slow it down. I had an extensive discussion about this very topic on my forum (0-->N vs. DelVar) and we determined via batch tests that 0--> is faster. This makes sense, since if you DelVar, you have to wait for the variable to be created next time you try to do something with it.
Image Image Image
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

Did you guys time it? But what you are saying makes sense.
DarkerLine
Calc Wizard
Posts: 526
Joined: Tue 08 Mar, 2005 1:37 am
Location: who wants to know?
Contact:

Post by DarkerLine »

Is there a slow-down factor in these optimizations?

Code: Select all

ClrDraw
{0,0->L1
{31,47->L2
{61,94->L3
Repeat K=105
getKey→K
If K>45 and K<96
Then
int(.1K
{Ans-7,K-3-10Ans -> L1
End
max(0,min(L1+L2,L3->L2
L1not(L2=L3 or not(L2 -> L1
Pxl-On(L2(1),L2(2
End
Last edited by DarkerLine on Sun 25 Dec, 2005 3:40 pm, edited 1 time in total.
just try to be nice to people.
_________________
My TI Blog - http://mpl.unitedti.org/
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

I will try it later, but that looks smaller and bigger at the same time.
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

KermMartian wrote:Here's the whole program, let's you sketch with the touch keyboard method:
But this is a completely different program! You don't calculate a difference from the previous point (let alone use a timer) but basically introduce a set of slower and faster cursor keys.
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

DarkerLine wrote:Is there a slow-down factor in these optimizations?

Code: Select all

ClrDraw
{0,0->L1
{31,47->L2
{61,94->L3
Repeat K=105
getKey→K
If K>45 and K<96
Then
int(.1K
{Ans-7,K-3-10Ans -> L1
End
max(0,min(L1+L2,L3->L2
L1not(L2=L3 or not(L2 -> L1
Pxl-On(L2(1),L2(2
End
Indeed, lists are always slower than vars. :)
And we did time that, kalan.
Image Image Image
DarkerLine
Calc Wizard
Posts: 526
Joined: Tue 08 Mar, 2005 1:37 am
Location: who wants to know?
Contact:

Post by DarkerLine »

Ah well, much of the execution time is actually spent waiting for a key, I think the size improvement is worth it.
just try to be nice to people.
_________________
My TI Blog - http://mpl.unitedti.org/
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

DarkerLine wrote:Ah well, much of the execution time is actually spent waiting for a key, I think the size improvement is worth it.
Fair enough, that's always the trick, figuring the correct ratio and balance of speed and size.
Image Image Image
Mike K
New Member
Posts: 59
Joined: Sun 16 Jan, 2005 3:25 am
Location: St. Louis
Contact:

Post by Mike K »

Okie, haven't loaded it onto my calc yet, but heres the compiled version (asm):

www.mikeknoop.com/upload/test.8XP

-Mike
User avatar
KermMartian
Calc Wizard
Posts: 549
Joined: Tue 05 Jul, 2005 11:28 pm
Contact:

Post by KermMartian »

nostub?
Image Image Image
User avatar
kalan_vod
Calc King
Posts: 2932
Joined: Sat 18 Dec, 2004 6:46 am
Contact:

Post by kalan_vod »

I couldn't get it to work.
Post Reply