summaryrefslogtreecommitdiff
path: root/book/src/performance.md
blob: e97d0ef3a28e7590f744b066cf835c93d7f3e339 (plain)
# Performance

Here are some tips to make your game perform more quickly

## Scripts

Generally, one large WebAssembly script will perform better than many small
scripts. There is overhead that comes from calling a script, and more scripts
will result in more overhead. Try to have as few scripts as possible. Ideally,
you should have no more than 20 scripts enabled at the same time.