HP Forums
Conway's game of life [faster version] - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP Prime Software Library (/forum-15.html)
+--- Thread: Conway's game of life [faster version] (/thread-555.html)

Pages: 1 2


RE: Conway's game of life [faster version] - Han - 03-07-2014 06:07 AM

This won't change the framerates, but you can speed up the initialization process within RLEmap by using ASC() and doing numerical comparisons as opposed to substring searches and calling EXPR() to determine the value of a character.


RE: Conway's game of life [faster version] - patrice - 03-07-2014 02:12 PM

(03-07-2014 06:07 AM)Han Wrote:  This won't change the framerates, but you can speed up the initialization process within RLEmap by using ASC() and doing numerical comparisons as opposed to substring searches and calling EXPR() to determine the value of a character.
I fear the gain will remain small. did you measured the execution time of both version?
As you spotted, it will not change the frame rate. So my goal was to make the RLEMap to work while staying rather simple to read/understand.
Contrary to LNext and LDisp which were both tailored for speed at the expense of readability.


RE: Conway's game of life [faster version] - patrice - 05-28-2014 12:52 AM

Updated for rev 6030.
Added a version in full screen size, try sets 9 and 6 on emulator with maximized window.


RE: Conway's game of life [faster version] - poznavatelj - 11-25-2020 12:16 PM

I tried "Version 2.4", and when runs it returns "Life Error: Insufficient memory"

What I'm doing wrong.


RE: Conway's game of life [faster version] - patrice - 12-10-2020 10:55 PM

No idea, never got this problem.
I am an old fashioned programmer and minimizing program foot print is always a concern to me.