So I am approaching completion of my Mellow Tiger interactive environment and want to get it as streamlined and functional as possible. Currently it doesn’t work on most mobile and on many less powerful computers.
I’ve worked to keep the VRAM relatively low (currently around 245) but maybe I need to cut this down more?
I’ve also seen references to AMMO being a sledgehammer solution that isn’t necessary for many projects (probably like mine) and could cause issues with mobile? How might one bypass this and maintain necessary collisions?
I’ve worked through the optimization guidelines but feel I must be missing some specific issues inherent in this experience. Any feedback/input/guidance would be happily appreciated. Thanks!
Thanks! I tried simply disabling clustered lighting, and visually it made very little difference (although when testing in editor I get the warning: “Turning on disabled clustered lighting is not currently supported”). Should that help it run better on lesser systems?
I will address your other suggestions as well. Thanks much!
EDIT: attempted to load on either iPhone or iPad still no worky. Back to the drawing board.
If you disable clustered lights, it might not work on some older devices, as the number of shadow casting lights you have is too large. So I’d suggest to leave it on, and use the other suggestions. Those other suggestions are only applicable if the clustered lighting is enabled.
Done and done. Stupid question, but where do I find the manual atlas split options? I can’t find them anywhere in the global settings or light-specific settings.
BTW: I’ve currently duplicated the problem with Cubemap not working when the cube facet images are compressed with BASIS. It significantly cuts the VRAM, but they simply don’t work when tested in editor (this is for the interior cubemap).
No optimization I attempt makes it run on mobile (or lesser computers), it just makes it look worse. So I’m just abandoning mobile, cranking the settings up, and warning people it’ll only work on good computers.
BUT if you still have any genius ideas about how to optimize it for mobile, I’m willing to give it a shot.
For now, try out the latest and greatest version and let me know how it works for you. How long to load? How does it run? What are you running it on?
And looks great, very well done! Things I’d optimize:
Definitely use static batching on some entities e.g. corns. That will reduce draw calls and improve performance. Draw calls are your main issue right now.
A more advanced optimization to reduce draw calls would be some form of occlusion zones. For example when you are inside a building you could automatically turn off several of the outside world entities. And vice versa.
I must be doing this all wrong, because creating batch groups results in hilariously wonky, glitchy environment. The Mellow Tiger - PLAYCANVAS
EDIT: So what I’m learning is that skeletal animated objects (the animated corn) don’t work in batches. But non-animated entities do. I’ve cut the draw calls by some using this method…