From d282a29b821b85bb8c8dc02a3512bc1c7f07ba2c Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 5 Jun 2026 17:42:11 +0200 Subject: [PATCH] Improve documentation on scale-based oversampling in CanvasItem --- doc/classes/CanvasItem.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/classes/CanvasItem.xml b/doc/classes/CanvasItem.xml index 2c5fdae8fd..8d6a3019ad 100644 --- a/doc/classes/CanvasItem.xml +++ b/doc/classes/CanvasItem.xml @@ -669,7 +669,8 @@ The color applied to this [CanvasItem]. This property does affect child [CanvasItem]s, unlike [member self_modulate] which only affects the node itself. - If enabled, oversampling for this [CanvasItem] is automatically adjusted with scale. + If enabled, oversampling for this [CanvasItem] is automatically adjusted with scale. This makes fonts and [DPITexture] images automatically re-render to match the actual scale they are drawn at, for crisper visuals. This has a performance impact on the CPU every time the node's scale changes, so it is disabled by default. + [b]Note:[/b] For [Control] nodes with [member Control.offset_transform_enabled] set to [code]true[/code], scale-based oversampling is only effective if [member Control.offset_transform_visual_only] is [code]false[/code]. This ensures there is no performance overhead when using visual-only offset transforms (as often used in animations). The color applied to this [CanvasItem]. This property does [b]not[/b] affect child [CanvasItem]s, unlike [member modulate] which affects both the node itself and its children.