Giter VIP home page Giter VIP logo

dtmodel's Introduction

在虚幻5里面如果想在Runtime中生成模型并显示,那UE有几个自带的组件都可以生成模型。

其中就有 UStaticMeshComponent(SMC)、UProceduralMeshComponent(PMC)、UDynamicMeshComponent(DMC)。

在其他很多文章中对这3个都有比较,大部分都是说DMC绘画效率比PMC绘画效率高,但是在我实例测试中,效率 SMC > PMC > DMC。 SMC是绘画最快的,DMC是绘画最慢的。

在模型所有数据的相同的情况下:点数量 1442401, 面数量 2880000

SMC 生成时间 16秒, 绘画GPU时间12毫秒 UStaticMeshComponent测试效果

PMC 生成时间 4秒, GPU时间21毫秒 UProceduralMeshComponent测试效果

DMC 生成时间 5秒, GPU时间24毫秒 UDynamicMeshComponent测试效果

并且PMC和DMC在计算碰撞的时候都可以开启异步计算,如果开启异步计算碰撞,PMC的生成时间只有0.2秒,而DMC还是需要1.2秒。

也就说明DMC不管是生成时间还是绘画效率都没有PMC块,DMC唯一的好处就是UE官方出了很多操作函数,可自定义性,可操作性比PMC强很多。

本测试是基于 5.3.2 版本测试。

原始文章

dtmodel's People

Contributors

dexter-wan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.