Author Topic: Dear Brandon Wilson <BrandonW>  (Read 11555 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
Dear Brandon Wilson <BrandonW>
« on: June 09, 2010, 06:26:08 pm »
Hello.

In your YouTube video "Hands-On with the TI-Presenter", you helped me stumble upon the reason why my Presentation Link gives me problems. In your video around 1:36, you stated the reason why these "wavy lines" occur. I am in a Science Olympiad called ACT-SO and we go to Nationals on the week of July 7th. My project for ACT-SO is "Can you create a video game on a calculator?" (Silly, I know. But not everyone is as savvy about these things as we are.) I need the Presentation Link to work before Nationals and I'm afraid my project will be all for naught if I can't fix it.

My game, Lemonade Tycoon, is made in xLib and BASIC. How would I fix that problem?
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 BrandonW

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +38/-1
    • View Profile
Re: Dear Brandon Wilson <BrandonW>
« Reply #1 on: June 09, 2010, 06:31:46 pm »
BASIC games don't have this problem. Assembly programs with their own LCD delay routines are the problem. Those can be modified to use the LCD delay routine at 000Bh instead, which is designed to work with the Presentation Link adapter.

xLIB may be (and probably is) one of said assembly programs/Flash applications that has its own LCD delay routine, surely out of necessity. You/me/somebody could try modifying xLIB to increase the LCD delay or use the one at 000Bh to see if that helps, but it'll cause you to see slowdown on a real calculator as well that might be unacceptable. Only way to know is to try it.

On the 83+SE and up, it may be possible to use the LCD delay hardware ports (in the 0x2x range, if memory serves) to do this without modifying xLIB. I haven't messed with these ports a lot so I couldn't say for sure, but hopefully that gives you some direction.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Dear Brandon Wilson <BrandonW>
« Reply #2 on: June 09, 2010, 06:47:33 pm »
Thank you very much.

And, slowdown wouldn't matter. They only want the application of.

If it works, it works.
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 calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Dear Brandon Wilson <BrandonW>
« Reply #3 on: June 09, 2010, 07:02:20 pm »
ports $29 and $2A are the important ones. (I think xLib only runs at 6MHz, so only $29 is the important one)
BrandonW can supply what the appropriate delay is. Note that all you'll have to do is use calcsys's port monitor or a very small (<20 bytes) asm program before you demonstrate your game.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline BrandonW

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +38/-1
    • View Profile
Re: Dear Brandon Wilson <BrandonW>
« Reply #4 on: June 09, 2010, 07:13:25 pm »
I would say just experiment with the values of those ports, but there's absolutely no guarantee that the maximum setting will be enough for the Presentation Link. You'd think that if it were, the TI-OS would just modify that instead of wasting more CPU cycles. But then again, this is TI we're talking about.

I don't think it would be too hard to modify xLIB to do this if it comes to that.

SirCmpwn

  • Guest
Re: Dear Brandon Wilson <BrandonW>
« Reply #5 on: June 09, 2010, 07:17:05 pm »
Would it be too hard to make a program that would search for common screen update routines and replace calls to them with a call to 000Bh?

Offline BrandonW

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +38/-1
    • View Profile
Re: Dear Brandon Wilson <BrandonW>
« Reply #6 on: June 09, 2010, 09:11:43 pm »
Not so much hard, but there are far too many possible routines to search for to make it worth it. Some games require that useful work be done while waiting for the LCD to become ready, and that's not easily patchable. So basically, it wouldn't be worth it.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Dear Brandon Wilson <BrandonW>
« Reply #7 on: June 09, 2010, 11:00:58 pm »
Moved to Calc help and support, as it was in the wrong section.

Does your game works in Door CS 7 and Celtic III btw? xLIB Source is not available.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Dear Brandon Wilson <BrandonW>
« Reply #8 on: June 09, 2010, 11:06:58 pm »
The game works.
It's just the wavy lines on the TI Presentation Link that I want to disappear.

@calcdude84se: You said something about CalcSys's port monitor. Could you explain this process?
How would you edit the values of the port and make it work?

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 DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Dear Brandon Wilson <BrandonW>
« Reply #9 on: June 09, 2010, 11:26:32 pm »
Well I was mentionning Celtic/DCS because since source is still available, then they could be modified to work fine on the presenter maybe, something impossible with xLIB

Offline BrandonW

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +38/-1
    • View Profile
Re: Dear Brandon Wilson <BrandonW>
« Reply #10 on: June 09, 2010, 11:28:24 pm »
It's not exactly impossible to modify xLIB to do this. Just because the source isn't available doesn't mean it can't be disassembled and patched, much like the TI-OS itself. I think it would be relatively trivial to modify a Flash application to include this extra delay, but then again I haven't looked at an xLIB disassembly in quite some time.

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Dear Brandon Wilson <BrandonW>
« Reply #11 on: June 09, 2010, 11:30:09 pm »
With respect to modifying, wouldn't just replacing the call to fastCopy with the romcall to copy the graph buffer work all the same for that purpose?
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline BrandonW

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +38/-1
    • View Profile
Re: Dear Brandon Wilson <BrandonW>
« Reply #12 on: June 09, 2010, 11:32:23 pm »
Yes, but I'm not sure how well that would work with the rest of the xLIB code. Using the BCALL, as you know, is a lot slower -- maybe too slow. It's certainly worth a shot, it just may be a little more involved.

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Dear Brandon Wilson <BrandonW>
« Reply #13 on: June 09, 2010, 11:41:17 pm »
Anyway. If Celtic III could work in place of xLIB for this particular game, I've already reworked my version to use the romcall instead of the fastcopy routine. This one's a pre-release of version 3.09t, so as always, back up the contents of your calculator before using it. Let me know how it works.

(Seems to work just fine for NES Says. And the slowdown isn't that noticeable.)
« Last Edit: June 09, 2010, 11:42:05 pm by Iambian »
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Dear Brandon Wilson <BrandonW>
« Reply #14 on: June 09, 2010, 11:46:26 pm »
WIll the slow down occur when storing stuff to the screen only or when storing stuff to the graph buffer and screen? If it's the former and Raylin won't update the screen that often, I guess it should be fine.