Browse Source

Fix toctree levels in Optimization section

Rémi Verschelde 5 years ago
parent
commit
e74e37d65f

+ 1 - 1
tutorials/optimization/general_optimization.rst

@@ -45,7 +45,7 @@ reality, there are several different kinds of performance problem:
 
 
 Each of these are annoying to the user, but in different ways.
 Each of these are annoying to the user, but in different ways.
 
 
-Measuring Performance
+Measuring performance
 =====================
 =====================
 
 
 Probably the most important tool for optimization is the ability to measure
 Probably the most important tool for optimization is the ability to measure

+ 16 - 6
tutorials/optimization/index.rst

@@ -2,7 +2,7 @@ Optimization
 =============
 =============
 
 
 Introduction
 Introduction
-~~~~~~~~~~~~
+------------
 
 
 Godot follows a balanced performance philosophy. In the performance world, there
 Godot follows a balanced performance philosophy. In the performance world, there
 are always trade-offs, which consist of trading speed for usability and
 are always trade-offs, which consist of trading speed for usability and
@@ -37,39 +37,49 @@ With this clear, the aim of this tutorial section is to explain how to get the
 maximum performance out of Godot. While the tutorials can be read in any order,
 maximum performance out of Godot. While the tutorials can be read in any order,
 it is a good idea to start from :ref:`doc_general_optimization`.
 it is a good idea to start from :ref:`doc_general_optimization`.
 
 
+Common
+------
+
 .. toctree::
 .. toctree::
    :maxdepth: 1
    :maxdepth: 1
-   :caption: Common
    :name: toc-learn-features-general-optimization
    :name: toc-learn-features-general-optimization
 
 
    general_optimization
    general_optimization
    using_servers
    using_servers
 
 
+CPU
+---
+
 .. toctree::
 .. toctree::
    :maxdepth: 1
    :maxdepth: 1
-   :caption: CPU
    :name: toc-learn-features-cpu-optimization
    :name: toc-learn-features-cpu-optimization
 
 
    cpu_optimization
    cpu_optimization
 
 
+GPU
+---
+
 .. toctree::
 .. toctree::
    :maxdepth: 1
    :maxdepth: 1
-   :caption: GPU
    :name: toc-learn-features-gpu-optimization
    :name: toc-learn-features-gpu-optimization
 
 
    gpu_optimization
    gpu_optimization
    using_multimesh
    using_multimesh
 
 
+2D
+--
+
 .. toctree::
 .. toctree::
    :maxdepth: 1
    :maxdepth: 1
-   :caption: 2D
    :name: toc-learn-features-2d-optimization
    :name: toc-learn-features-2d-optimization
 
 
    batching
    batching
 
 
+3D
+--
+
 .. toctree::
 .. toctree::
    :maxdepth: 1
    :maxdepth: 1
-   :caption: 3D
    :name: toc-learn-features-3d-optimization
    :name: toc-learn-features-3d-optimization
 
 
    optimizing_3d_performance
    optimizing_3d_performance