As seen in the screenshot, Physics2D.UpdateTransforms is slowing my game down. Docked underneath it is this CanvasRenderer.OnTransfromChanged. I’ve looked around the documentation and searched the forum to no avail. Anyone know anything about CanvasRenderer.OnTransfromChanged?
Hi,
this is a lag issue that hasn’t been debugged by Unity devs yet.
It may come from the objects hierarchy :
I experiment the same type of “CanvasRenderer.OnTransformChanged” lags with a not so deep scaling in my hierarchies (4-5 levels are enough)
I found out that it’s lagging more with UI objects that fill the screen (rectransform anchors, xmin : 0, Xmax :1 and same for Y) When I change for 0.01 and 0.99 the lag falls down a bit. So, this is quite strange.
I noticed that when I change canvas render mode to camera, i get like 1000+ canvasrenderer.ontransformchanged calls. when I change it to overlay, it disappears.