Runtime decimation mesh

Hi everyone
I’m currently trying to develop a script for unity for my thesis at university that aims to decimate the mesh of a model at runtime (namely in game) when the FPS count is a bit over the 60fps
what I wonder is if it really is possible to do such a thing
I tried a few way to decimate the meshes but none of them worked

does anyone have any suggestion?
thanks in advance for the help

You’d need to keep a copy of your original mesh and decimate from that - if you try to decimate from the decimated mesh it’ll quickly end up looking like a mess. Unless it’s just for research purposes the best solution is probably to just have different LODs for your mesh and use them instead.

Also, you could have a look on the store: https://assetstore.unity.com/packages/tools/modeling/runtime-mesh-operator-55504