# Performance

Performance is critical in real-time 3D applications. Ensuring smooth frame rates and responsive interactions makes the difference between something that *feels right* and something that *feels broken*.

### JavaScript is fast (if you use it right)

While JavaScript lacks some nice features of other programming languages often used in game development like C++ and C#, it is likely fast enough.

Modern JavaScript engines like V8 are highly optimized. Most performance issues come not from the language itself, but from poor coding patterns such as frequent object allocations, wrong data structures, or unnecessary physics queries.

By reusing objects, minimizing garbage collection, and keeping GPU usage efficient, **JavaScript can deliver smooth, real-time experiences**, even on lower-end hardware.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hology.app/gameplay/performance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
