Image noise: Difference between revisions

→‎{{header|Axe}}: Moved key flushing to avoid interfering with FPS, and added info about response time
(→‎{{header|Axe}}: Added optimizations, FPS count info, and randomization info)
(→‎{{header|Axe}}: Moved key flushing to avoid interfering with FPS, and added info about response time)
Line 248:
It is possible to notice some vertical line patterns in the noise. This is likely due to the pseudorandom number generator and not the drawing method.
 
This example gets steady 48 FPS on a TI-84 Plus Silver Edition running at 15 MHz. It gets 26 FPS when running at 6 MHz. Some pixels appear gray because the duration of each frame is shorter than the screen's notoriously slow response time. If a pixel is toggled very quickly, it never has time to fully transition to white or black.
 
<lang axe>.Enable 15 MHz full speed mode
Line 254:
.Disable memory access delays (adds 1 FPS)
Fullʳ
 
.Flush key presses
While getKey(0)
End
 
.Setup
Line 260 ⟶ 264:
Fix 5
fnInt(FPS,6)
 
.Flush key presses
While getKey(0)
End
 
Repeat getKey(0)
Anonymous user