{"version":"1.0","type":"rich","title":"Scale Godot content for HiDPI","description":"This example demonstrates how to scale a Godot application’s content for HiDPI displays using the engine’s built-in scaling system. It shows a single line of GDScript that sets the root viewport’s `content_scale_factor` based on the display’s reported scale, retrieved via `DisplayServer.screen_get_scale()`. The code assigns this factor in the `_ready()` function of a `main.gd` script, ensuring the interface adapts to high-resolution screens without manual pixel calculations. The example relies on Godot’s `SceneTree` root and `DisplayServer` API, with no external libraries or data sources.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-33d36c38a10787b6b4accf52ac80aed5?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}