Reduce performance impact of item glows.

This commit is contained in:
Mari the Deer 2021-07-13 17:04:42 +02:00
commit 045560672d
5 changed files with 28 additions and 16 deletions

View file

@ -118,5 +118,5 @@ This is just a bit of *"future planning"* for stuff that I ***might*** add after
- Satellite *(Total Destruction)*
- [Heretic/Hexen] Safety Tether *(Original)*
- Devastation Sigil *(SWWM)*
- Black Matter Armor *(SWWM)*
- Divine Sprite *(SWWM Platinum)*
- Angel of Death *(Total Destruction, SWWM Platinum Ep2)*

View file

@ -0,0 +1 @@
Official SWWM GZ Campaign

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r574 \cu(Fri 9 Jul 13:21:28 CEST 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r574 \cu(2021-07-09 13:21:28)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r575 \cu(Tue 13 Jul 17:04:42 CEST 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r575 \cu(2021-07-13 17:04:42)\c-";

View file

@ -240,18 +240,18 @@ extend Class SWWMHandler
msg.AppendFormat("\nWallbuster: %08x",Random2[Wallbuster]());
msg.AppendFormat("\nYnykron: %08x",Random2[Ynykron]());
msg.AppendFormat("\n\n\cfUI RNG (should not cause desyncs if mismatched):\c-\n");
msg.AppendFormat("\nbdscreen: %08x [UI]",Random2[bdscreen]());
msg.AppendFormat("\nClientSparkles: %08x [UI]",Random2[ClientSparkles]());
msg.AppendFormat("\nDemoLines: %08x [UI]",Random2[DemoLines]());
msg.AppendFormat("\nFInTheChat: %08x [UI]",Random2[FInTheChat]());
msg.AppendFormat("\nFunTags: %08x [UI]",Random2[FunTags]());
msg.AppendFormat("\nhdscreen: %08x [UI]",Random2[hdscreen]());
msg.AppendFormat("\nHudStuff: %08x [UI]",Random2[HudStuff]());
msg.AppendFormat("\nInterArt: %08x [UI]",Random2[InterArt]());
msg.AppendFormat("\nScoreBits: %08x [UI]",Random2[ScoreBits]());
msg.AppendFormat("\nTUID: %08x [UI]",Random2[TUID]());
msg.AppendFormat("\nUIStuff: %08x [UI]",Random2[UIStuff]());
msg.AppendFormat("\nWallbusterMenu: %08x [UI]",Random2[WallbusterMenu]());
msg.AppendFormat("\nbdscreen: %08x",Random2[bdscreen]());
msg.AppendFormat("\nClientSparkles: %08x",Random2[ClientSparkles]());
msg.AppendFormat("\nDemoLines: %08x",Random2[DemoLines]());
msg.AppendFormat("\nFInTheChat: %08x",Random2[FInTheChat]());
msg.AppendFormat("\nFunTags: %08x",Random2[FunTags]());
msg.AppendFormat("\nhdscreen: %08x",Random2[hdscreen]());
msg.AppendFormat("\nHudStuff: %08x",Random2[HudStuff]());
msg.AppendFormat("\nInterArt: %08x",Random2[InterArt]());
msg.AppendFormat("\nScoreBits: %08x",Random2[ScoreBits]());
msg.AppendFormat("\nTUID: %08x",Random2[TUID]());
msg.AppendFormat("\nUIStuff: %08x",Random2[UIStuff]());
msg.AppendFormat("\nWallbusterMenu: %08x",Random2[WallbusterMenu]());
Console.Printf(msg);
return;
}

View file

@ -1009,6 +1009,8 @@ Class SWWMTeleportFog : Actor
Class SWWMPickupFlash : Actor
{
Vector3 lastitempos;
Default
{
RenderStyle "Add";
@ -1062,7 +1064,16 @@ Class SWWMPickupFlash : Actor
return;
}
else if ( bINVISIBLE ) bINVISIBLE = false;
SetOrigin(target.Vec3Offset(0,0,16+target.GetBobOffset()),true);
// try to reduce calls to SetOrigin as much as possible, for performance
if ( target.pos != invoker.lastitempos ) SetOrigin(target.Vec3Offset(0,0,16),true);
invoker.lastitempos = target.pos;
if ( target.bFLOATBOB && !bFLOATBOB )
{
bFLOATBOB = true;
FloatBobStrength = target.FloatBobStrength;
FloatBobPhase = target.FloatBobPhase;
}
else if ( !target.bFLOATBOB && bFLOATBOB ) bFLOATBOB = false;
A_SetScale(FRandom[ClientSparkles](.9,1.1)*(max(target.radius,target.height)/16.));
alpha = FRandom[ClientSparkles](.9,1.)*clamp((max(0,Distance3DSquared(players[consoleplayer].Camera)-40000.)/160000000.)**.25,0.,1.);
}