Jump to content

How can I change the disappear time of landed projectiles?


Recommended Posts

  On 11/02/2025 at 4:22 PM, Seleucids said:

The projectiles thrown around in battles stay on the ground for some time. This increases CPU lag and is unecessary. How can I change the time the system waits before it cleans up the ground? Thanks. 

Expand  

C++ ProjectileManager.cpp. would be nice to have configurable someday

  • Like 4
Link to comment
Share on other sites

You can override the impactActorLifetime in the Attack component. There is also a DelayedDamage component, which I used in grapejuice as a workaround at some point (not anymore though). You're going to have to test OOS cases yourself although im fairly sure when doing it through DelayedDamage component it wont OOS.

Edited by Grapjas
  • Like 2
Link to comment
Share on other sites

  On 12/02/2025 at 7:23 PM, Grapjas said:

You can override the impactActorLifetime in the Attack component. There is also a DelayedDamage component, which I used in grapejuice as a workaround at some point (not anymore though). You're going to have to test OOS cases yourself although im fairly sure when doing it through DelayedDamage component it wont OOS.

Expand  

That's for impact actors not arrows, no ?

Link to comment
Share on other sites

  On 15/02/2025 at 7:55 AM, hyperion said:

On really poor GPU it may make a difference. Given that such a poor GPU is usually paired with a week CPU (and we are mostly CPU bound) I agree that it's unlikely to help.

Expand  

I have a laptop which has 14 cores @4.5GHz but only an Intel Arc iGPU which relies on offloading tasks to its NPU. I have another laptop which runs Intel Iris. 

At the start of a game, I can get up to 500fps, then this value decays as more buildings are built and units trained. At 200 pop, I can sustain 80~140 fps. But when we have a full scale 1v1 battle with 140 inf each side, the frame rate drops to 3fps. If more than 2 players are involved, the GUI freezes completely until more than half of the units present are dead. 

Link to comment
Share on other sites

  On 15/02/2025 at 11:51 AM, Grapjas said:

Can confirm you can do this via delayed damage cmp, just tested it. Fun fact; only missed projectiles stay on the ground in vanilla (if they have an actor anyway).

Expand  

Yeah that's intended behaviour. Thanks for testing :) can you share the code or make a mod ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...