A_AttachLight and friends are too performance intensive. Fall back to just spawning light actors.
This commit is contained in:
parent
bd6c799988
commit
64ab1c6633
6 changed files with 130 additions and 77 deletions
|
|
@ -68,14 +68,14 @@ Class URocketTrail : Actor
|
|||
override void PostBeginPlay()
|
||||
{
|
||||
Super.PostBeginPlay();
|
||||
A_AttachLight('RocketLight',DynamicLight.PointLight,Color(255,224,128),32,32);
|
||||
let l = Spawn("RocketLight",pos);
|
||||
l.target = self;
|
||||
}
|
||||
override void Tick()
|
||||
{
|
||||
Super.Tick();
|
||||
if ( !target || !target.bMISSILE )
|
||||
{
|
||||
A_RemoveLight('RocketLight');
|
||||
Destroy();
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue