Post Reply 
Calculator graphics drawing benchmark
01-25-2022, 03:07 AM (This post was last modified: 01-25-2022 03:30 AM by robve.)
Post: #10
RE: Calculator graphics drawing benchmark
An additional result:

Ti-nspire cx II cas
program: Ti Basic
screen: 318x210
time: 2.65s
performance: 25200

The program uses UseBuffer to increase performance:

Code:
Define LibPub hitomezashi(s)=
Prgm
Local x,y,h,v
UseBuffer
Clear
SetColor 0,0,255
SetPen 1,1
h:=317
v:=209
For y,0,v,s
  For x,s*randInt(0,1),h,2*s
    DrawLine x,y,x+s,y
  EndFor
EndFor
For x,0,h,s
  For y,s*randInt(0,1),v,2*s
    DrawLine x,y,x,y+s
  EndFor
EndFor
PaintBuffer
EndPrgm

- Rob

"I count on old friends to remain rational"
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Calculator graphics drawing benchmark - robve - 01-25-2022 03:07 AM



User(s) browsing this thread: 15 Guest(s)