mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Update tutorials: VisualServer to RenderingServer
This commit is contained in:
@@ -403,15 +403,9 @@ Reducing aliasing on downsampling
|
||||
|
||||
If the game has a very high base resolution (e.g. 3840×2160), aliasing might
|
||||
appear when downsampling to something considerably lower like 1280×720.
|
||||
Aliasing can be made less visible by shrinking all images by a factor of 2
|
||||
upon loading. This can be done by calling the method below before
|
||||
the game data is loaded::
|
||||
|
||||
VisualServer.texture_set_shrink_all_x2_on_set_data(true)
|
||||
|
||||
Alternatively, you can also enable mipmaps on all your 2D textures. However,
|
||||
enabling mipmaps will increase memory usage which may be problematic on low-end
|
||||
mobile devices.
|
||||
To resolve this, you can enable mipmaps on all your 2D textures. However, enabling mipmaps
|
||||
will increase memory usage which may be problematic on low-end mobile devices.
|
||||
|
||||
Handling aspect ratios
|
||||
----------------------
|
||||
|
||||
@@ -156,7 +156,7 @@ it using (for example):
|
||||
::
|
||||
|
||||
# Wait until the frame has finished before getting the texture.
|
||||
yield(VisualServer, "frame_post_draw")
|
||||
await RenderingServer.frame_post_draw
|
||||
# You can get the image after this.
|
||||
|
||||
Viewport Container
|
||||
|
||||
Reference in New Issue
Block a user