Calculator graphics drawing benchmark
|
01-29-2022, 04:36 PM
(This post was last modified: 01-29-2022 08:33 PM by DavidM.)
Post: #22
|
|||
|
|||
RE: Calculator graphics drawing benchmark
I like these patterns. It seems like they are much more planned and deliberate than the simple algorithm would imply.
(edit: I removed examples of another approach that created horizontal and vertical dashed lines and replicated those lines in the same randomly-staggered sequence -- they deviated too much from the intended algorithm to include them here) A "brute force" implementation on the 50g: Code: \<< This one isn't exactly a speed demon: HP 50g program: User RPL screen: 131x80 time: 13.52s (average of 10 runs) performance: 775 Given that other platforms were checked with alternate language options, I also tried the above method with System RPL. I knew that a lot of the slowdown in the User RPL implementations comes from type conversions and argument structuring, and both of those would be less of an issue with System RPL. The brute-force approach I used above in a System RPL implementation looks like this: Code: :: A noticeable improvement: HP 50g program: System RPL screen: 131x80 time: 1.459s (average of 10 runs) performance: 7,183 Thanks for the interesting exercise! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 15 Guest(s)