基于UNITY三维虚拟仿真的内存优化研究  被引量:5

Research on Memory Optimization Based on Unity 3D Virtual Simulation

在线阅读下载全文

作  者:汪华健 汪志锋 WANG Hua-jian;WANG Zhi-feng(Shanghai Polytechnic University,Department of Engineering,Shanghai 201209,China)

机构地区:[1]上海第二工业大学工学部,上海201209

出  处:《计算机仿真》2022年第7期421-425,486,共6页Computer Simulation

基  金:上海第二工业大学研究生项目基金(EGD19YJ0009)。

摘  要:针对使用UNITY引擎开发的虚拟仿真平台内存占用过大而导致的卡顿问题,从资源调度角度引入四叉树算法,并针对上述算法进行优化;在加载场景时,将场景中三维模型按照一定的特征存储到四叉树的各个子节点;在运行时,以摄像机为中心对周边节点上的三维模型进行预制体实例化及动态销毁,从而实现资源的动态调度。实验表明,在Unity引擎中通过引入四叉树算法进行动态调度能够有效降低虚拟仿真时的卡顿问题,显著地降低内存占用,在使用Unity进行其它场景开发也有着良好的效果。Aiming at the problem that the virtual simulation platform developed by using the unity engine occupies too much memory,the quadtree algorithm was introduced from the perspective of resource scheduling and optimized for the above algorithm.When loading the scene,the 3 D model in the scene was adjusted according to a certain characteristics,and the features were stored in each child node of the quadtree.At runtime,the 3 D model on the surrounding nodes was instantiated and dynamically destroyed with the camera as the center,so as to realize the dynamic scheduling of resources.Experiments show that the dynamic scheduling by introducing quadtree algorithm into unity engine can effectively reduce the Caton problem in virtual simulation and significantly reduce the memory occupation.It also has a good effect in the development of other scenarios using unity..

关 键 词:虚拟仿真 四叉树算法 资源动态调度 内存管理 

分 类 号:TP311.[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象