Good evening hope all is well.
I have been noticing mini freezes when a player picks up a dropped item. The game uses a item shape grid for its inventory. I decided to run the profiler to see whats going on. Is there supposed to be this many calls? **EDIT - So looks like when I compile the game, and run the profiler it still freezes when I pickup items, HOWEVER if I stop profiling on the compiled game the freezing stops when picking up items.
I'm also experiencing another issue which isn't particularly a UIS issue. I'm having the same issue described above when an enemy drops an item and the canvas for the item name enables above the dropped item. I profiled it, and it showed that it was the horizontal layout group and Content Size Fitter on the ItemPickup prefab. I removed the two components, and that fixed the mini freeze issue. So my question is, is there another way to scale the canvas depending on the horizontal/vertical size of the text that wouldn't cause performance hitches?
I have been noticing mini freezes when a player picks up a dropped item. The game uses a item shape grid for its inventory. I decided to run the profiler to see whats going on. Is there supposed to be this many calls? **EDIT - So looks like when I compile the game, and run the profiler it still freezes when I pickup items, HOWEVER if I stop profiling on the compiled game the freezing stops when picking up items.
I'm also experiencing another issue which isn't particularly a UIS issue. I'm having the same issue described above when an enemy drops an item and the canvas for the item name enables above the dropped item. I profiled it, and it showed that it was the horizontal layout group and Content Size Fitter on the ItemPickup prefab. I removed the two components, and that fixed the mini freeze issue. So my question is, is there another way to scale the canvas depending on the horizontal/vertical size of the text that wouldn't cause performance hitches?
Last edited: