Dynamic Surfaces by AlexSerodio - 6


Unity project that tests the performance of two different surface components.

Unity 2017.3.1f1GNU General Public License v2.0Updated 1 year agoCreated on October 6th, 2017
Go to source

Dynamic Surfaces - Performance Test

An Unity project made to compare the performance of two different surface components provided by Unity, the Terrain Component and the Mesh Component.

Getting Started

To run the project you must have Unity 3D installed. This project was developed with Unity 2017.3.0 so it might not work for older versions.

Understanding the project

The main goal here is test which surface component is better for dynamic modifications made at runtime. The surfaces used were the Terrain and Mesh components. Both have the same resolution, width, length, height and are submitted to the same functions. The only differences are how to access the surfaces height values (since Terrain uses a two-dimensional array to store the height values whereas Mesh uses a simple one-dimensional array) and how to update their colors (since Mesh Component can work with solid colors whereas Terrain seems to work only with alphamaps).


Here are some images showing the results achieved until now (using both static and dynamic texture). The yellow numbers on top indicate the frame rate of the scene.


The images can’t demonstrate the changes that occur in the frame rate during execution. So for more accurate results, you can download the project and run it to see the changes yourself.

Show all projects by AlexSerodio