Author Topic: Homescreen or graphscreen?  (Read 7134 times)

0 Members and 1 Guest are viewing this topic.

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: Homescreen or graphscreen?
« Reply #15 on: October 06, 2010, 11:38:50 am »
Quote from: DJ Omnimaga
I don't think so. Good luck, Deep Thought, at rendering a 12x8 tilemap in 3 seconds in pure-BASIC. With dual-layer text as shown in the screenshot above, it takes about 2-3 seconds and with single-layer ascii it takes half a second.

I meant as compared to small-text 5x5 sprites. I need to start using 5x7...




Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Homescreen or graphscreen?
« Reply #16 on: October 06, 2010, 12:40:17 pm »
Pixel-based sprites are actually faster than text sprites, but bigger.
Bigger in which way? Does the program get larger?

Yes, the source code almost always expands because you have to use multiple pixel or Line drawing commands.

It's best to make pixel based sprites as small and simple to draw as possible. For example, when I did CAD (see picture below), the only way I could draw the cursor sprite in real time was to make it those four pixels you can see. Of course, the projection algorithms massacred any optimizations I made to the code, but that's beside the point.

« Last Edit: October 06, 2010, 12:45:22 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

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: Homescreen or graphscreen?
« Reply #17 on: October 06, 2010, 02:05:09 pm »
Quote from: DJ Omnimaga
I don't think so. Good luck, Deep Thought, at rendering a 12x8 tilemap in 3 seconds in pure-BASIC. With dual-layer text as shown in the screenshot above, it takes about 2-3 seconds and with single-layer ascii it takes half a second.

I meant as compared to small-text 5x5 sprites. I need to start using 5x7...
Ah right, that would indeed be slower than actual sprites in some cases. That's unless the text sprites are complex, though, cuz in that case the same pixel based sprite may end up slower.

Pixel-based sprites are actually faster than text sprites, but bigger.
Bigger in which way? Does the program get larger?

Yes, the source code almost always expands because you have to use multiple pixel or Line drawing commands.

It's best to make pixel based sprites as small and simple to draw as possible. For example, when I did CAD (see picture below), the only way I could draw the cursor sprite in real time was to make it those four pixels you can see. Of course, the projection algorithms massacred any optimizations I made to the code, but that's beside the point.


Wow I swear I saw this program somewhere. I think it was on Cemetech, TI-BASIC Developper or Ticalc.org

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Homescreen or graphscreen?
« Reply #18 on: October 06, 2010, 02:17:29 pm »
It would probably be on TI-Dev unless someone took the liberty of posting it on another forum. That's where I posted the screenshots of the program, although I never got a chance to post the completed program (frikkin' mathprint).
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

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: Homescreen or graphscreen?
« Reply #19 on: October 06, 2010, 02:18:15 pm »
Ah ok I see. It might be TIBD then. What happeend with MathPrint? Did you got hit by a memory clear?

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Homescreen or graphscreen?
« Reply #20 on: October 06, 2010, 02:20:10 pm »
Yep. I was innocently using the exponential key when I hit the clear button halfway through the expression. That particular sequence causes an error in the program and crashes the calc. CAD was in RAM at the time...
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

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: Homescreen or graphscreen?
« Reply #21 on: October 06, 2010, 02:23:30 pm »
X.x

This is when we want to switch to Casio rant about TI the most X.x

Backups are always nice, but when you use pure-BASIC, you don't expect RAM clears to occur.

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: Homescreen or graphscreen?
« Reply #22 on: October 06, 2010, 05:23:32 pm »
* ZTrumpet shakes fist at TI! D=

I've been able to achieve some pretty stunning graphics in pure basic; Click the Exodus and Elmgon banners in my sig to see some of what I've accomplished with zero Asm help. ;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: Homescreen or graphscreen?
« Reply #23 on: October 06, 2010, 08:02:32 pm »
Yep. I was innocently using the exponential key when I hit the clear button halfway through the expression. That particular sequence causes an error in the program and crashes the calc. CAD was in RAM at the time...

I KNEW IT! I got that glitch once too, but I didn't remember how.

Btw, that prgm looks really nice.




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: Homescreen or graphscreen?
« Reply #24 on: October 07, 2010, 02:16:11 am »
Yep. I was innocently using the exponential key when I hit the clear button halfway through the expression. That particular sequence causes an error in the program and crashes the calc. CAD was in RAM at the time...
Could you create a screenshot of how you actually recreate this error? I cannot reproduce it with the steps explained in your post. ???

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Homescreen or graphscreen?
« Reply #25 on: October 07, 2010, 02:19:28 am »
I think he meant he was doing an expression on the homescreen that included fractions and stuff maybe?

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: Homescreen or graphscreen?
« Reply #26 on: October 07, 2010, 02:48:08 am »
Mhmm... weird, I tried messing with those and got no issues. It would be nice if a screenshot was posted showing exactly how to recreate the error.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Homescreen or graphscreen?
« Reply #27 on: October 07, 2010, 02:48:31 am »
Yeah sounds obscure

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: Homescreen or graphscreen?
« Reply #28 on: October 07, 2010, 07:13:54 pm »
Yeah sounds obscure

It is. I've only had it happen once. I had a really complicated expression on the screen, full of exponents, and I did something that caused a RAM clear. I don't remember what, though :P But that made me decide immediately that I would never, ever upgrade anyone to 2.53MP.