# 如何绘制大量的线，我尝试了用PDI-\>drawline的方式绘制，会特别的卡，有没有什么更好的优化方案？

**URL:** <https://forums.unrealengine.com/t/pdi-drawline/1816532>\
**Category:** C++\
**Tags:** c-c, c-class-wizard, c-and-bluepri, c-custommeshcomponen, c-and-blueprint, c-error, c-class, c-custom-shape, c-programming, c-cone-shape, unreal-engine, Rendering, question, CPP\
**Created:** [April 23, 2024, 4:49am UTC](https://forums.unrealengine.com/t/pdi-drawline/1816532 "2024-04-23T04:49:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CrazyDALiu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CrazyDALiu](https://forums.unrealengine.com/u/CrazyDALiu)\
**Post date:** [April 23, 2024, 4:49am UTC](https://forums.unrealengine.com/t/pdi-drawline/1816532/1 "2024-04-23T04:49:36Z")

</div>

如何绘制大量的线，我尝试了用PDI-\>drawline的方式绘制，会特别的卡，有没有什么更好的优化方案？

---

<div class="post-metadata">

**Author:** ![wqq1341846083](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wqq1341846083](https://forums.unrealengine.com/u/wqq1341846083)\
**Post date:** [March 31, 2026, 9:11am UTC](https://forums.unrealengine.com/t/pdi-drawline/1816532/2 "2026-03-31T09:11:24Z")

</div>

我也遇到相同的问题，请教一下后来你是用的什么方案解决的？
