Add throttling for blood and gib spawning.
Reduce effects of flying gibs. Add a command to instantly clear queued effects.
This commit is contained in:
parent
9c7a43bbd9
commit
a91e73f51e
8 changed files with 52 additions and 24 deletions
|
|
@ -229,6 +229,9 @@ extend Class SWWMHandler
|
|||
override void WorldThingDestroyed( WorldEvent e )
|
||||
{
|
||||
if ( profiling ) curms = MSTime();
|
||||
// for gibber throttling
|
||||
if ( e.Thing is 'mkBloodDrop' ) blods_realcnt--;
|
||||
else if ( e.Thing is 'mkFlyingGib' ) meats_realcnt--;
|
||||
if ( !e.Thing.default.bSHOOTABLE && !e.Thing.default.bMISSILE && !(e.Thing is 'Inventory') && !SWWMUtility.IsBeamProj(e.Thing) )
|
||||
{
|
||||
if ( profiling ) worldthingdestroyed_ms += MSTime()-curms;
|
||||
|
|
@ -248,6 +251,9 @@ extend Class SWWMHandler
|
|||
override void WorldThingSpawned( WorldEvent e )
|
||||
{
|
||||
if ( profiling ) curms = MSTime();
|
||||
// for gibber throttling
|
||||
if ( e.Thing is 'mkBloodDrop' ) blods_realcnt++;
|
||||
else if ( e.Thing is 'mkFlyingGib' ) meats_realcnt++;
|
||||
if ( !e.Thing || SuppressMultiItem(e) )
|
||||
{
|
||||
if ( profiling ) worldthingspawned_ms += MSTime()-curms;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue