Calculator Community > HP Calculators

HP 39gII grayscale tunnel clone

<< < (2/4) > >>

DJ Omnimaga:

--- Quote from: Matrefeytontias on March 18, 2013, 04:16:04 am ---It's HP Basic btw ?

Also, even unoptimized, the thing is going at a reasonable speed I think ;)

--- End quote ---
Yup, or at least it's the on-calc language that looks like BASIC. :) No ASM nor C were used. At 17-20 MHz with low batteries, I still managed to get 3 FPS with 25 columns of rectangles (3 per column) appearing. In Casio BASIC this thing would take 1 minute per frame to render for sure. I can't imagine how fast it would get if this language had scrolling commands. O.O

However, making this game was a challenge because:

-I don't think this language supports screen shifting commands. To scroll, you have to redraw everything like I did. I could speed my tunnel up by drawing 2 rectangles by column, but then the tunnel would flicker a lot.
-There's no way to redim a list, so no possibility to just shift a list content around by concatenating it with an extra element then truncating the end.
-Matrices can be resized, but you can't concatenate them together.
-You need to add semicolon after most code lines, although that is rather common on computers languages.

As for the rest of the 39 series I think they're way less powerful than the 50g except maybe the 39gs, and very different from the 39gII. THe 39gII was really redone from scratch, uses different screen resolution and as a result its language seems much faster. However it uses the same ARM processor as the 50g I think.

Also I just checked the apps section and they seemed to use the RAM. I am not sure what does use the rest of the flash memory. As for the large program size, I heard it was due to using unicode characters but I'm not sure if this is why.

TravisE:
If they recoded the 39gII in C or in some language that compiles to ARM ASM, that would definitely explain why it seems so fast. The 50g is somewhat held back due to most of its OS being written in RPL, running in an interpreter written in Saturn ASM, running in a Saturn emulator written for the ARM. In many ways, it actually seems surprisingly fast despite the overhead (many operations are much faster than on the TI calculators with their native CPU OSes). Though, it is possible to write programs directly in Saturn ASM, ARM ASM, C, or whatever for the 50g—I haven't looked into that, and to be honest, I haven't really tried any games even though I've had this calc for several years already—always too busy coding my own stuff. :P

Sorunome:
Looking nice, is the 39gcll a new calculator by hp? It seems to have a lot of power :)

DJ Omnimaga:
I think I recall watching a video of HP 49 or 50g calcs graphing equations and was surprised at how slow it was considering how fast it was on TI. On the 39gII it's much faster.

The downside is still that the 39gII OS is really buggy. It's not as bad as 2.71MP, though, but enough to turn people away. :P

TravisE:
My 50g seems to graph sin(x) at roughly the same speed as my 89t, when both are set to the same plotting resolution. Fast3D beats the 89's 3D hands-down, though, when it comes to interactive rotation framerate. :) It's possible that older 49-series calcs might be slower, though; the old models with actual Saturn processors would be much slower, of course. It's also possible that various speed optimizations may have been made in the ROM code over time.

I'd be interested in seeing some videos of the 39gII graphing equations for comparison purposes.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version