cg小白兔 发表于 2024-9-12 15:28:14

Actor Pool Manager Plugin 1.7 适配UE5.3













Actor Pool Manager Plugin
Spawning alot of actors can hurt your performance of your application. Spawning and destroying the same actor classes will require unnessary memory allocations, constructor calls and will even consume more power if you load other resources like materials, animations or particle effects in your BeginPlay methods.

This plugin is designed to optimize and simplify your actor spawning. Gain more performance and stable framerates while respawning alot of actors by code in C++ or from Blueprints.

Easy Implementation
The Actor Pool Manager Plugin provides an Interface that can extend your C++ Actors and your Blueprint Actors. That way, it is very easy to implement actor pooling in your existing code. It can be used on every C++ or Blueprint class that is an Actor, even Pawns or Characters.

The Interface implementation allows you to use the plugin on complex actor hierarchies without touching the underlying code base. Inheritances cannot be changed in most cases, for example the APawn class. It is not possible to change the base Actor class. With the PoolActorInterface it is possible to extend the default APawn class with the actor pooling feature. All you need to do is to create your own, empty Pawn class which extends from the default Pawn and add the PoolActorInterface.

Technical Details
Features:
Spawning and releasing actors without calling constructors and BeginPlay each time
Re-use frequently spawned actors like projectiles
Easy implementation by Interface for all actor classes in pure C++, pure Blueprints or mixture of both
Hook PoolBegin and PoolEnd events from C++ and/or Blueprints for lightweight initialization
Demo-Level and pure Blueprint sample included
Update 1.2: Blueprint spawn on Server with network replicated actors
Code Modules:
PoolManager Runtime


角色池管理器插件
生成大量角色会损害应用程序的性能。如果在 BeginPlay 方法中加载其他资源(如材质、动画或粒子效果),则生成和销毁相同的角色类将需要不必要的内存分配和构造函数调用,甚至会消耗更多电量。

该插件旨在优化和简化演员的生成。使用 C++ 或 Blueprints 代码重生大量角色时,可获得更高的性能和更稳定的帧频。

轻松实现
演员池管理器插件提供了一个可扩展 C++ 演员和蓝图演员的接口。这样,就可以在现有代码中轻松实现演员池管理。它可用于每个 C++ 或蓝图类中的角色,甚至包括棋子或角色。

通过接口实现,您可以在复杂的角色层次结构中使用该插件,而无需触及底层代码库。在大多数情况下,例如 APawn 类,继承关系是无法更改的。不可能更改基础 Actor 类。有了 PoolActorInterface,就可以使用演员池功能扩展默认的 APawn 类。您只需创建一个从默认 Pawn 扩展而来的空 Pawn 类,并添加 PoolActorInterface 即可。

技术细节
特性
无需每次调用构造函数和 BeginPlay 即可生成和释放角色
重复使用经常生成的角色(如弹丸
通过以下方法轻松实现





页: [1]
查看完整版本: Actor Pool Manager Plugin 1.7 适配UE5.3