Author Topic: 16-Level Grayscale  (Read 35613 times)

0 Members and 1 Guest are viewing this topic.

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: 16-Level Grayscale
« Reply #60 on: July 10, 2010, 04:35:32 pm »
I noticed that too. Sadly, my lcd is not fast enough to do double time like yours can though. Using the crystal timers, as they are more accurate, mine refreshes at 61.4 hz, and my max lcd speed from spedTest is 120. So you can see the problem there. Whereas, yours refreshes at 67.4 and your screen can handle 219. You could even go for the third pass, but that wouldn't actually be grayscale. :)

But technically that shouldn't make a difference. Doubling just makes the calculator load a completely useless frame in between the ones that are displayed. I don't see how that would take the lines away. It would also require 2/3 of your processor time and >100% of mine.

Edit:
   Post 100. Yay!!!!
« Last Edit: July 10, 2010, 04:36:18 pm by thepenguin77 »
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Madskillz

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 488
  • Rating: +32/-2
    • View Profile
Re: 16-Level Grayscale
« Reply #61 on: July 10, 2010, 09:07:55 pm »
I get the same results as calcdude

32 and 67

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: 16-Level Grayscale
« Reply #62 on: July 10, 2010, 09:16:34 pm »
ok, but give me the bigger number, the one in the 60s-70s is unusable for games. But if your delay is 32, that's different.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Madskillz

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 488
  • Rating: +32/-2
    • View Profile
Re: 16-Level Grayscale
« Reply #63 on: July 10, 2010, 10:05:19 pm »
For REFRESH I got 142, and SPEDTEST gives me ~13991765 Hz for cpu speed, and 97 FPS for LCD speed.

Sorry I was stating when the lines completely disappeared. 168 is pretty close.

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: 16-Level Grayscale
« Reply #64 on: July 10, 2010, 10:20:59 pm »
Your calc is giving really mixed results. Having a driver delay of 32, refresh delay of 168, and REFRESH result of 142 all suggest a moderately slow screen. But have a FPS of 97 is the worst I have ever seen. Same with 14.0 MHz.

But, that's helpful. I'm just waiting until I get a repeat Driver delay so that I can see if these numbers hold true, if they don't, then the frequency will have to be user adjusted and saved in an appvar.

Here is the current data:
Code: [Select]
port 29h delay | port 32h delay
------------------------------
      12       |       162
      32       |       168
      44       |       178
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Madskillz

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 488
  • Rating: +32/-2
    • View Profile
Re: 16-Level Grayscale
« Reply #65 on: July 10, 2010, 10:26:46 pm »
Ha ha I was like damn 97...that aint good ha. I bought my 84+SE when it first came out.

edit:I've never had problems with running grayscale programs though. Just those that you posted.
« Last Edit: July 10, 2010, 10:32:24 pm by Madskillz »

Offline Magic Banana

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 371
  • Rating: +77/-1
  • It's not an apple, it's a ... magic banana.
    • View Profile
Re: 16-Level Grayscale
« Reply #66 on: July 11, 2010, 02:55:57 am »
Here are my results. All ran on a TI83+SE:
Refresh -  141
Speedtest - 14980583 hz and 119 fps
Gray4 - Driver 16 and Refresh 62.
I do sprites and stuff, so yeah.

Quote from: yunhua98
i'M NOT SURE WHAT A SWORD SKILL IS BUT HERE'S THE SWORD ANIMATION FROM THE TWO SPRITES ON PG 13

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: 16-Level Grayscale
« Reply #67 on: July 11, 2010, 03:45:51 am »
Ti-83+ SE
Results:
Refresh:114
Speedt tests: CPU-15019419 hz Lcd speed -100 fps
Gray4:Driver:20 Refresh:133

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: 16-Level Grayscale
« Reply #68 on: July 11, 2010, 12:39:28 pm »
Should I test this program on my regular TI-83+?

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: 16-Level Grayscale
« Reply #69 on: July 11, 2010, 02:09:48 pm »
Code: [Select]
84+:
port 29h delay | port 32h delay
------------------------------
      12       |       162
      32       |       168
      44       |       178

83+SE:
      16       |       124*
      20       |       133


* multiplied by 2

Well a pattern is definitely emerging. The slower the driver, the slower the refresh rate. Also, the 83+SE's refresh a lot faster. Wow, new hardware documentation 10 or so years later.

DJ, don't run it on your 83+, they all use crystal timers except REFRESH.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

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: 16-Level Grayscale
« Reply #70 on: July 11, 2010, 02:22:03 pm »
It definitively seems as years goes by, TI puts shittier and shittier LCD drivers in their calcs. I wonder what we'll have in 20 years if calcs still exists x.x

That said, at least they have better contrast ratio, now. On the regular 83+, I don't really recommend going above 5 shades of gray because you'll only be able to see 80% of them at once due to crappy contrast ratio. On the TI-Nspire, contrast is low, but at least you see the shades of grays more properly, kinda like the 83+SE and 84+:


And ok thanks for the info.
« Last Edit: July 11, 2010, 02:45:53 pm by DJ Omnimaga »

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: 16-Level Grayscale
« Reply #71 on: July 11, 2010, 05:24:51 pm »
Realize that cpu speed (and the hardware timers) depends on battery power, while the crystal timers don't (I'm unsure about the lcd)
Also, for those who want to use the LEVEL8 program posted earlier with the benefit of correctly set crystal timers, I hacked together an Axe utility to modify the program to work better.
Supposing you didn't change the original program name from LEVEL8 (change the source code if you did), the program will display the REFRESH value the program is currently using. Change it to the REFRESH number you got from GRAY4 using the arrow keys (up/down change it by 1, left/right by 10) and press enter. The program will say "FIXED" and return.
(The program w/the 'S' on the end is the source, btw)
"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 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: 16-Level Grayscale
« Reply #72 on: July 11, 2010, 05:29:52 pm »
The LCD grayscale quality is the same regardless of if I got brand new Duracells or nearly dead Dollar Store batteries on both my 83+ and 83+SE.

Nice program btw. Now if only I had a real calc ready to test this on...
« Last Edit: July 11, 2010, 05:30:14 pm by DJ Omnimaga »

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: 16-Level Grayscale
« Reply #73 on: July 11, 2010, 06:17:30 pm »
Realize that cpu speed (and the hardware timers) depends on battery power, while the crystal timers don't (I'm unsure about the lcd)
Also, for those who want to use the LEVEL8 program posted earlier with the benefit of correctly set crystal timers, I hacked together an Axe utility to modify the program to work better.
Supposing you didn't change the original program name from LEVEL8 (change the source code if you did), the program will display the REFRESH value the program is currently using. Change it to the REFRESH number you got from GRAY4 using the arrow keys (up/down change it by 1, left/right by 10) and press enter. The program will say "FIXED" and return.
(The program w/the 'S' on the end is the source, btw)

^^That is dedication. Oops, I guess I never actually included the source, (the grayCopy uses call and ret in reverse, it calls with ret and returns with call). You could have just told me to update it, but I suppose it's more fun to figure out how to use Axe to hack stuff. :)

Here is the official update. It gives you a little screen where you fix the refresh rate yourself. Then press 2nd and it's saved until you delete the appVar.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: 16-Level Grayscale
« Reply #74 on: July 11, 2010, 06:23:23 pm »
It wasn't too complicated, I just assumed every "out (32h),a" was preceded by "ld a,REFRESH" and replaced the byte before every "D332" (or E32D3 in Axe) with what you wanted. Nothing too bad. :P
Nice to have an official update, though. When can we get the converter I'm assuming you used? ;D
« Last Edit: July 11, 2010, 06:24:05 pm by calcdude84se »
"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.