Draw in Ruby question. (dot vs array)

For general discussion related FlowStone
Post Reply
User avatar
guyman
Posts: 207
Joined: Fri Mar 02, 2018 8:27 pm

Draw in Ruby question. (dot vs array)

Post by guyman »

Hey..

Let's say I'm drawing dots, squares, or sunbursts. if all executed in the same ruby block, to the view/display... am I saving cpu by executing an array of shapes, or typing individual entries? Or are they all executed simul. so it doesn't matter?


Thanks.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Draw in Ruby question. (dot vs array)

Post by tulamide »

guyman wrote:am I saving cpu by executing an array of shapes, or typing individual entries?

I don't understand this sentence. Please provide an example fsm.
"There lies the dog buried" (German saying translated literally)
Post Reply