Not direct solution but this mod solved this problem for me. https://modrinth.com/mod/immediatelyfast/version/1.9.4+1.21.5-fabric this version (or later I used 1.9.6) of the mod says in its Changelog:
Speed up buffer upload on Apple GPUs
This "reverts" an internal 1.21.5 change which caused a performance regression on Apple GPUs
I hope they will fix this problem for vanilla version too.
Not direct solution but this mod solved this problem for me. https://modrinth.com/mod/immediatelyfast/version/1.9.4+1.21.5-fabric this version (or later I used 1.9.6) of the mod says in its Changelog:
Speed up buffer upload on Apple GPUs
This "reverts" an internal 1.21.5 change which caused a performance regression on Apple GPUs
I hope they will fix this problem for vanilla version too.