Minor TransparentChecker performance boost

Got rid of its _process, using _ready() instead. It also gets called when the canvas size changes, or the checker settings in the preferences change.
This commit is contained in:
OverloadedOrama 2020-04-20 19:12:22 +03:00
parent b21455cfd0
commit 79a4c0232e
4 changed files with 11 additions and 1 deletions

View file

@ -1,6 +1,7 @@
extends ColorRect
func _process(_delta):
func _ready():
rect_size = Global.canvas.size
material.set_shader_param("size", Global.checker_size)
material.set_shader_param("color1", Global.checker_color_1)