JohnEarnest / ok

An open-source interpreter for the K5 programming language.
MIT License
587 stars 72 forks source link

cache tojs() results for palette values #26

Closed rmmh closed 8 years ago

rmmh commented 8 years ago

This makes ike.html?gist=387b349f31969a409d65 render 2x faster. The per-frame time goes from 240ms to 100ms.

This may not be the best placement for the caching, but when drawing 14000 pixels, tojs is the bottlneck.