Hi everybody
I’m doing a Top down game for mobile and I’m trying to optimize my game for low end device.
I would like to know if it’s ok to use Cinemachine just to make a simple follow of the player ?
I really don’t use any settings that cinemachine offers. and even if the consumption of cinemachine are really low, is it to the point of having no impact?
Thanks for your help !
Thanks for the answer !
It comforts me in my choice ^^
I will do a simple custom script with a basic SmoothDamp, it’s all I need in my case! Sometimes i’m changing target , but it’s also simple to achieve that :)!
Thanks again!
Have a nice day
Cinemachine is a powerful tool for creating camera systems in Unity, but it may have some performance implications, especially on lower-end mobile devices. While Cinemachine is designed to be optimized for performance, it does come with some overhead due to its additional functionality and flexibility.
If you are only using Cinemachine for a simple follow feature and not utilizing any of its advanced features, it might be overkill and unnecessary for your game. Depending on your specific requirements, you might be able to achieve similar functionality with a simpler solution that has lower performance overhead.
Here are some potential alternative approaches you could consider for a simple follow feature without using Cinemachine:
Basic Transform Manipulation: You can directly manipulate the position and rotation of the camera transform based on the position of the player character. This can be achieved using basic scripting in Unity without the need for additional plugins.
SmoothDamp: Unity has a built-in function called SmoothDamp that can be used to smoothly interpolate the position and rotation of the camera towards the desired target position and rotation. This can be a more lightweight solution compared to Cinemachine, as it doesn’t require any additional components or systems.
Custom Camera Script: You can also create a custom camera script that follows the player character using basic math and interpolation techniques. This can give you full control over the camera behavior and performance, tailored specifically to your game’s requirements.
Ultimately, the performance impact of using Cinemachine or any other solution will depend on various factors, including the complexity of your scene, the number of objects being rendered, the performance of the target device, and other game-specific considerations. It’s always a good practice to profile and test your game on a low-end device to ensure optimal performance.
hope this helps you
best regards
Hector Gibson
This might be the most obviously ChatGPT response I’ve seen on these forums.
2 Likes