Author Topic: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library  (Read 142940 times)

0 Members and 1 Guest are viewing this topic.

Offline SpiroH

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +153/-23
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #330 on: August 18, 2013, 07:40:26 am »
Since SDL 2.0 is now out, what benefits would it offer to the Nspire once you port it?
Yeah, but beware that the porting effort of most of the current SDL apps wouldn't be that straightforward without a lot of source recoding. So, not all that glitters is always gold. I mean, SDL 2.0 is NOT backwards-compatible with SDL 1.2. :P

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #331 on: August 18, 2013, 10:22:26 am »
Here's a filtered list of the features that really matter on the nspire. I did remove some stuff that's technically useable, but unlikely to be used, like multiple audio device support. (Easy enough, but I don't know how much audio the USB can handle when you have 4 USB audio dongles :P) Look at this list as motivations for why to switch.

  • Atomic operations (For those who don't know, this is making certain areas of code unable to be interrupted. So, they would postpone any automatic timed actions.)
  • Better keyboard support (scancodes vs keycodes, etc).
  • A "really powerful" assert macro. (Debugging tool. Not generally used in release programs)
  • Power management (exposes battery life remaining, etc) (Could be very useful, assuming it works on the nspire at all :P)
  • 32-bit audio (int and float)

The window-based changes don't matter since even if you use X, there's only 320x240 pixels to work with anyway.


Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #332 on: August 22, 2013, 12:46:44 pm »
While SDL2 is a much more modern GPU-based API, it wouldn't benefit the TI-Nspire that much. There are some new useful functions and the whole library is cleaner but apart from that at the moment it's too much work (or not that much work at all, depends, haven't looked at it) and not many open source projects have been made using it, so the return on investment is so-so. I still need to update the current nSDL (I'm waiting for that tiny drop of motivation to form so I can finish it) before I can even think of the next version.

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #333 on: August 22, 2013, 12:50:37 pm »
I hope that drop will form soon, nSDL is an awesome project :) Maybe silly question: could someone give an example when you want code to be unable to be interruped?

Some people need a high five in the face... with a chair.
~EC

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #334 on: August 22, 2013, 07:22:45 pm »
Would it be possible to somehow control the TI-Nspire's native cursor through Ndless? I don't know if it's because of some new changes in Ndless or not, but now I can see the animated clock desperetaly trying to draw itself on the screen, and it moves as I move my finger on the touchpad. That means there is some master thread running and taking care of the mouse, it would be much better if I could get access to that. I guess functions to read the coordinates and force the cursor to draw itself would be extremely welcome.
« Last Edit: August 22, 2013, 07:24:09 pm by hoffa »

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #335 on: August 22, 2013, 07:40:12 pm »
Are you enabling interrutps through TCT_Local_Control_Interrupts() and why ?
If not, consider it as a bug, and you may call ExtendeD.

If you're enabling interrupts for a custom IRQ handler, you may use a specific mask (I don't rememeber what bit filed it was).
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #336 on: August 23, 2013, 04:09:28 pm »
hoffa, do you have a sample program showing this?
« Last Edit: August 23, 2013, 04:09:39 pm by ExtendeD »
Ndless.me with the finest TI-Nspire programs

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #337 on: August 26, 2013, 03:38:52 pm »
ElementCoder, let's say you're trying to do software bit-banged asynchronous serial. The timings on that are very precise, so an interrupt would screw it up bad enough to get at least one bad byte, probably two.

Also, maybe you don't want to be able to pause during a transition, or similar. If pausing was interrupt-based you would either need to check if it was a transition, or disable the interrupt.

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #338 on: August 27, 2013, 06:34:48 am »
hoffa, do you have a sample program showing this?
Yeah, attached. Sorry for the late reply, have been insanely busy.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #339 on: August 27, 2013, 06:49:49 am »
hoffa, do you have a sample program showing this?
Yeah, attached. Sorry for the late reply, have been insanely busy.
May you attach the source as well ? (or a link since it looks like it's Mode7)
Thanks.
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #340 on: August 27, 2013, 08:54:35 am »
By being demotivated and retiring from the TI-Nspire development community, don't you think that you're doing exactly what TI wanted?

And TI probably don't think they're losing anything like that, as they have many teachers to create TI-Nspire content.
« Last Edit: August 28, 2013, 08:14:04 am by critor »
TI-Planet co-admin.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #341 on: August 27, 2013, 11:45:44 am »
well, for them, the least native developers/hackers, the better, so indeed, as stated multiple times, it's just the lack of motivation / amount of people that makes TI "win" the native fight for a given OS version.
If somebody skilled is motivated enough to find exploits, I'm sure he'll find it.
That's what  Extended and the other ndless contributors have done over time ! But the lack of time was/is more the reason for not having an ndless 3.2 yet I guess
« Last Edit: August 27, 2013, 11:46:08 am by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #342 on: August 27, 2013, 04:55:02 pm »
Sad decision :( nSDL didn't (or hasn't had yet) the success it deserves...
Ndless.me with the finest TI-Nspire programs

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #343 on: August 28, 2013, 06:41:41 am »
Oh... See what you"re doing, TI!

Anyway, thanks to have ported nSDL, hoffa, it was a good idea.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library
« Reply #344 on: August 28, 2013, 08:10:37 am »
Quote
See what you"re doing, TI!
That's one of their goals...
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.