<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>I started out with this:</div><div><br></div><div><font face="Courier New"> get_random_value(0, 2, V, !IO),</font></div><div><font face="Courier New"> ( if V = 0 then</font></div><div><font face="Courier New"> Speed = 0.25, Color = color(gray)</font></div><div><font face="Courier New"> else if V = 1 then</font></div><div><font face="Courier New"> Speed = 0.75, Color = color(skyblue)</font></div><div><font face="Courier New"> else</font></div><div><font face="Courier New"> Speed = 1.25, Color = color(beige)</font></div><div><font face="Courier New"> ),</font></div><div><font face="Courier New"> Star = star(X, StarY, Speed, to_rgba(Color)).</font></div><div><br></div><div>end then, for some half0baked reason regarding not creating Speed and Color but instead directly returning Star...</div><div><br></div><div><font face="Courier New"> get_random_value(0, 2, V, !IO),</font></div><div><font face="Courier New"> ( if V = 0 then</font></div><div><font face="Courier New"> Star = star(X, StarY, 0.25, to_rgba(color(gray)))</font></div><div><font face="Courier New"> else if V = 1 then</font></div><div><font face="Courier New"> Star = star(X, StarY, 0.75, to_rgba(color(skyblue)))</font></div><div><font face="Courier New"> else</font></div><div><font face="Courier New"> Star = star(X, StarY, 1.25, to_rgba(color(beige)))</font></div><div><font face="Courier New"> ).</font></div><div><br></div><div><br></div><div>So, is there any real difference, or did I do something good / bad / indifferent at best?</div><div>Yes, I know it's a nit picking question but I am curious to know the relative speed / efficiencies , I am writing a game after all so being 1980-s paranoid, every cycle counts. I have '-O4' level optimisation in my build.</div><div><br></div><div>:D</div><div><br></div><div>Thanks</div><div>Sean.</div><div><br></div></body></html>