Seleucids Posted February 11 Report Share Posted February 11 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. 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted February 11 Report Share Posted February 11 38 minutes ago, 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. C++ ProjectileManager.cpp. would be nice to have configurable someday 4 Quote Link to comment Share on other sites More sharing options...
Grapjas Posted February 12 Report Share Posted February 12 It can be done in JS. Quote Link to comment Share on other sites More sharing options...
Atrik Posted February 12 Report Share Posted February 12 4 hours ago, Grapjas said: It can be done in JS. That would be op news got a27. But how? Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted February 12 Report Share Posted February 12 5 hours ago, Grapjas said: It can be done in JS. Don't leave us hanging 1 Quote Link to comment Share on other sites More sharing options...
Grapjas Posted February 12 Report Share Posted February 12 (edited) 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 February 12 by Grapjas 2 Quote Link to comment Share on other sites More sharing options...
Stan` Posted February 12 Report Share Posted February 12 2 hours ago, 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. That's for impact actors not arrows, no ? Quote Link to comment Share on other sites More sharing options...
Grapjas Posted February 12 Report Share Posted February 12 (edited) 9 minutes ago, Stan` said: That's for impact actors not arrows, no ? IIRC the delayed damage cmp does all. Might misremember though, been a while. Also, I doubt theres anything to gain from this at all if a projectile has no particles tbh. Edited February 12 by Grapjas Quote Link to comment Share on other sites More sharing options...
Stan` Posted Saturday at 07:40 Report Share Posted Saturday at 07:40 Anyone tried this ? Quote Link to comment Share on other sites More sharing options...
hyperion Posted Saturday at 07:55 Report Share Posted Saturday at 07:55 On 12/02/2025 at 11:06 PM, Grapjas said: Also, I doubt theres anything to gain from this at all if a projectile has no particles tbh. 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. Quote Link to comment Share on other sites More sharing options...
Seleucids Posted Saturday at 09:52 Author Report Share Posted Saturday at 09:52 1 hour ago, 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. 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. Quote Link to comment Share on other sites More sharing options...
hyperion Posted Saturday at 10:00 Report Share Posted Saturday at 10:00 Arc iGPU is far from the poor I mentioned in this context. Quote Link to comment Share on other sites More sharing options...
Grapjas Posted Saturday at 11:51 Report Share Posted Saturday at 11:51 (edited) 4 hours ago, Stan` said: Anyone tried this ? 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). Edited Saturday at 12:06 by Grapjas 1 Quote Link to comment Share on other sites More sharing options...
Stan` Posted Saturday at 18:36 Report Share Posted Saturday at 18:36 6 hours ago, 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). Yeah that's intended behaviour. Thanks for testing can you share the code or make a mod ? Quote Link to comment Share on other sites More sharing options...
Grapjas Posted Saturday at 20:19 Report Share Posted Saturday at 20:19 (edited) On 15/02/2025 at 7:36 PM, Stan` said: Yeah that's intended behaviour. I know, i was just sharing.delete_projectiles.zip Edited 10 hours ago by Grapjas fixed mod.json 1 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.