• 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-m­azerunner/blob/master/dist/bangle.min.js­


    2 Attachments

    • maze-runner.jpg
    • memory-2.jpg
About

Avatar for bertyhell @bertyhell started