# Optimization

**URL:** https://forum.castle-engine.io/c/optimization/15.md

[Latest](https://forum.castle-engine.io/latest.md) · [Categories](https://forum.castle-engine.io/categories.md)

---

## [About the Optimization category](https://forum.castle-engine.io/t/about-the-optimization-category/612)

<div class="topic-metadata">

**Author:** [@michalis](https://forum.castle-engine.io/u/michalis)\
**Replies:** 0

</div>

How to make your games faster. See also CGE manual about optimization.

---

## [Game vs. Editor performance](https://forum.castle-engine.io/t/game-vs-editor-performance/1286)

<div class="topic-metadata">

**Author:** [@NiunioMartinez](https://forum.castle-engine.io/u/NiunioMartinez)\
**Replies:** 3\
**Last updated:** [July 26, 2024, 9:50am UTC](https://forum.castle-engine.io/t/game-vs-editor-performance/1286 "2024-07-26T09:50:49Z")

</div>

I’ve found that the Terrain example is quite slow in my old computer\*: about 3-10FPS. The weird thing is that inside the editor it runs way faster (I don’t know how much but it is playable). Anybody can explain why? …

---

## [Scene update when using AnimationSkipTicks](https://forum.castle-engine.io/t/scene-update-when-using-animationskipticks/1057)

<div class="topic-metadata">

**Author:** [@bugan11](https://forum.castle-engine.io/u/bugan11)\
**Replies:** 1\
**Last updated:** [January 11, 2024, 5:23pm UTC](https://forum.castle-engine.io/t/scene-update-when-using-animationskipticks/1057 "2024-01-11T17:23:11Z")

</div>

Hello, I am also wondering, when I do have animations playing in the scene, but I do not want to constantly redisplay the contents of the world, so I turned off AutoRedisplay, when AnimationSkipTicks is 0, it is correctl…

---

## [How does dynamic batching work?](https://forum.castle-engine.io/t/how-does-dynamic-batching-work/1056)

<div class="topic-metadata">

**Author:** [@bugan11](https://forum.castle-engine.io/u/bugan11)\
**Replies:** 4\
**Last updated:** [January 11, 2024, 4:52pm UTC](https://forum.castle-engine.io/t/how-does-dynamic-batching-work/1056 "2024-01-11T16:52:15Z")

</div>

Hello, I was just wondering how does dynamic batching work, and if it works only under certain scenarios? Because within the docs, it is said that two similar objects, with same shader (which is just a material basically…

---

## [How do I get the width and height of the texture for TCastleAbstractPrimitive?](https://forum.castle-engine.io/t/how-do-i-get-the-width-and-height-of-the-texture-for-tcastleabstractprimitive/705)

<div class="topic-metadata">

**Author:** [@KumurTash](https://forum.castle-engine.io/u/KumurTash)\
**Replies:** 3\
**Last updated:** [January 4, 2023, 6:35pm UTC](https://forum.castle-engine.io/t/how-do-i-get-the-width-and-height-of-the-texture-for-tcastleabstractprimitive/705 "2023-01-04T18:35:30Z")

</div>

How do I get the width and height of the texture for TCastleAbstractPrimitive? While I’m doing it like this. Tex := TImageTextureNode.Create; Tex.SetUrl(Self.Texture); writeln(Tex.TextureImage.Width); But the texture …
