ok, quick update
skipping the postprocessing step needed for drawing the vertical walls, i can get the memory under control.
Then the game runs at about 1 frame every 8 seconds.
If i reduce the number of rays that are cast to 240/8, then it runs at 1 frame per second.
I guess i can optimize it more by keeping track of the time it takes to do the render function and see where the bottlenecks are.
If you want to try it: https://github.com/bertyhell/nodewatch-mazerunner/blob/master/dist/bangle.min.js
2 Attachments
@bertyhell started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
ok, quick update
skipping the postprocessing step needed for drawing the vertical walls, i can get the memory under control.
Then the game runs at about 1 frame every 8 seconds.
If i reduce the number of rays that are cast to 240/8, then it runs at 1 frame per second.
I guess i can optimize it more by keeping track of the time it takes to do the render function and see where the bottlenecks are.
If you want to try it: https://github.com/bertyhell/nodewatch-mazerunner/blob/master/dist/bangle.min.js
2 Attachments