summaryrefslogtreecommitdiff
path: root/book/src
diff options
context:
space:
mode:
Diffstat (limited to 'book/src')
-rw-r--r--book/src/SUMMARY.md4
-rw-r--r--book/src/chapter_1.md1
-rw-r--r--book/src/performance.md10
3 files changed, 15 insertions, 0 deletions
diff --git a/book/src/SUMMARY.md b/book/src/SUMMARY.md
new file mode 100644
index 0000000..570263b
--- /dev/null
+++ b/book/src/SUMMARY.md
@@ -0,0 +1,4 @@
+# Summary
+
+- [Chapter 1](./chapter_1.md)
+- [Performance](./performance.md)
diff --git a/book/src/chapter_1.md b/book/src/chapter_1.md
new file mode 100644
index 0000000..b743fda
--- /dev/null
+++ b/book/src/chapter_1.md
@@ -0,0 +1 @@
+# Chapter 1
diff --git a/book/src/performance.md b/book/src/performance.md
new file mode 100644
index 0000000..d769a6f
--- /dev/null
+++ b/book/src/performance.md
@@ -0,0 +1,10 @@
+# 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.