Game of Life in React/Redux, help in increasing performance

后端 未结 2 1726
小蘑菇
小蘑菇 2021-01-18 17:19

I am working on a version of The Game of Life in react/redux/javascript, whilst i have it working the performance is horrible.

Here is a link to the running game He

2条回答
  •  攒了一身酷
    2021-01-18 17:31

    So in the end never got the performance to a satisfactory level using the DOM and html components. So i re-wrote the grid code to render all the cells using HTM5 Canvas and the performance is no longer an issue, in fact it now renders quite happily on the iPhone.

提交回复
热议问题