Skip to content

Commit 2c136e6

Browse files
authored
Merge pull request #92797 from stuartcarnie/sgc/canvas_batching
Add batching to `RendererCanvasRenderRD`
2 parents 14a7e0a + a657ea4 commit 2c136e6

File tree

6 files changed

+2440
-2058
lines changed

6 files changed

+2440
-2058
lines changed

doc/classes/ProjectSettings.xml

+3
Original file line numberDiff line numberDiff line change
@@ -2341,6 +2341,9 @@
23412341
[b]Note:[/b] This property is only read when the project starts. To change the physics FPS at runtime, set [member Engine.physics_ticks_per_second] instead.
23422342
[b]Note:[/b] Only [member physics/common/max_physics_steps_per_frame] physics ticks may be simulated per rendered frame at most. If more physics ticks have to be simulated per rendered frame to keep up with rendering, the project will appear to slow down (even if [code]delta[/code] is used consistently in physics calculations). Therefore, it is recommended to also increase [member physics/common/max_physics_steps_per_frame] if increasing [member physics/common/physics_ticks_per_second] significantly above its default value.
23432343
</member>
2344+
<member name="rendering/2d/batching/item_buffer_size" type="int" setter="" getter="" default="16384">
2345+
Maximum number of canvas item commands that can be batched into a single draw call.
2346+
</member>
23442347
<member name="rendering/2d/sdf/oversize" type="int" setter="" getter="" default="1">
23452348
Controls how much of the original viewport size should be covered by the 2D signed distance field. This SDF can be sampled in [CanvasItem] shaders and is used for [GPUParticles2D] collision. Higher values allow portions of occluders located outside the viewport to still be taken into account in the generated signed distance field, at the cost of performance. If you notice particles falling through [LightOccluder2D]s as the occluders leave the viewport, increase this setting.
23462349
The percentage specified is added on each axis and on both sides. For example, with the default setting of 120%, the signed distance field will cover 20% of the viewport's size outside the viewport on each side (top, right, bottom, left).

0 commit comments

Comments
 (0)