Simple mesh deformation : Mesh.vertices or vertex shader with displacement texture ?

Hello, I have a simple “2D grid” that I want to deform and I have implemented this by modifying vertices positions and applying them to the Mesh via Mesh.vertices and that works well.

But wouldn’t be better to calculate positions and save them to a texture that a vertex shader will read to move the vertices ?

In both cases, some data must be send from the CPU to the GPU (vertices in the first case and texture in the second) so I don’t know if one solution is better than the other or even if there is another better solution to do that ?


hope this helps

in this deforming data is stored in vertices.