This is from the terrain module. Source codeBecause it also requires support from the other three modules (common, maths, and rendercore), it cannot be compiled.
I used a long time to improve the rendering speed of super-large terrain. Currently, in the release mode, the FPS is generally maintained at around 200. When you look up and down, the FPS can reach more than 500.
Current shortcomings:
1,ProgramMemory usage during runtime.
To implement ultra-large scenarios, if there are 256*256 leaf nodes, In the release mode, the initial version will occupy more than 70 MB of memory, and then it will be changed.AlgorithmNow, it still takes more than 20 mb of memory. The memory is occupied by the node information of the terrain tree.
2. As required by the algorithm, the texture coordinates of the vertices of a certain angle of all leaf nodes of the terrain tree must be calculated all at the beginning of the program.
To implement ultra-large scenarios, if there are 256*256 leaf nodes, it takes more than 10 seconds in the release mode.
I will try my best to solve the problem even though the program does not understand it. In addition, please kindly advise. Thank you.
Sf_2004913125521.rar