Author Topic: NSpire multithreading proof-of-concept  (Read 1490 times)

0 Members and 1 Guest are viewing this topic.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 228
  • Rating: +97/-0
    • View Profile
    • tangrs blog
NSpire multithreading proof-of-concept
« on: March 25, 2012, 04:12:39 am »
While making the movie player, I had realised one problem and that was that the frames could not decode fast enough. So I decided that multithreading was needed so it could continue to decode frames in the background while occasionally waking up to update the screen.

Of course, Ndless provides no such features. You have to write it yourself! So, without further ado, I present to you a proof-of-concept of multithreading on the Nspire calculator. After I refine it a bit, I'll integrate it into the movie player.

It's BSD licenced so feel free to take it, hack it, modify it, improve it, use it in your own projects or rip it to shreds.

Source code

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: NSpire multithreading proof-of-concept
« Reply #1 on: March 25, 2012, 04:32:10 am »
Hey, that's another nifty project. Good job :)

I've cross-posted it to http://tiplanet.org/forum/viewtopic.php?t=8936 .
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: NSpire multithreading proof-of-concept
« Reply #2 on: March 25, 2012, 04:53:59 am »
Wow, that's awesome.  :o

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: NSpire multithreading proof-of-concept
« Reply #3 on: March 25, 2012, 08:03:21 am »
Very nice :D