I’m makeing a game for iphone.
and I have to make dirt field. but there is some probleme.
while mesh deforming fps drop to 5 in my test device.
Please experts any solution? or any other workaroud of this?
I used Sculpt Vertices script in Procedural Examples. without updating mesh collider.
Realtime mesh updating is taxing, the 3GS with its 600mhz cpu is not exactly fast.
Especially in case you are using physics in which case you are pushing a lot cpu power into the machine itself.
Generally a few things you can approach to potentially make it better (I suspect that especially 2 might be related to it here)
- Don’t do it continously. Do it at lower rates, potentially in a single step
- When updating multiple vertices then don’t update the vertex array multiple times a frame, update it a single time (garbage collection will otherwise break your neck)
- Test if lower poly usage makes a difference
if its 2 then the on-device profiling you can enable through the define in AppController.mm will show it to you pretty easily