I'm trying to track down some performance issues in my project and I'm noticing the "Scripts" category is nearly doubling in time whenever my camera is moving, and it's almost entirely due to TMP Layout Text in this category. I've done some tests with all of the canvases disabled and it's still spiking whenever the camera moves. It seems like it's updating all overlay canvases, regardless of whether they're even active, when the camera moves. I've tried compartmentalizing things that would be updated frequently from other things by putting them on separate canvases, but it looks like it's just always repainting them when the camera moves anyway. How can I mitigate this performance hit?
#Large performance spike in `PostLateUpdate.PlayerUpdateCanvases` while camera moves
1 messages · Page 1 of 1 (latest)
Ah, hang on, I have world-space TMPs. That's probably what the issue is, let me see if disabling them fixes the performance
textmesh pro text rendering is also very very slow
Yeah, I tried to limit how often they're updated, and I just forgot about the world-space ones, which basically completely solved the performance issues
in world space you will get the SDF material rendered a lot which you don't want. i mean maybe if you are getting really close to these world space texts it matters, but i don't think you are
you can also try the original ancient text field with system / bitmap text
I just disable them if they're too far away to reasonably see, which frees up a lot of render time