Merge "Fix Mesh UAF, uniform handling, and performance bug." into main