summaryrefslogtreecommitdiff
path: root/book
diff options
context:
space:
mode:
Diffstat (limited to 'book')
-rw-r--r--book/.gitignore1
-rw-r--r--book/book.toml6
-rw-r--r--book/src/SUMMARY.md4
-rw-r--r--book/src/chapter_1.md1
-rw-r--r--book/src/performance.md10
5 files changed, 22 insertions, 0 deletions
diff --git a/book/.gitignore b/book/.gitignore
new file mode 100644
index 0000000..7585238
--- /dev/null
+++ b/book/.gitignore
@@ -0,0 +1 @@
+book
diff --git a/book/book.toml b/book/book.toml
new file mode 100644
index 0000000..8185223
--- /dev/null
+++ b/book/book.toml
@@ -0,0 +1,6 @@
+[book]
+authors = ["Mica White"]
+language = "en"
+multilingual = false
+src = "src"
+title = "The Alligator Book"
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.