-
Notifications
You must be signed in to change notification settings - Fork 247
Reduce the lifetime for water trail emitters #6089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce the lifetime for water trail emitters #6089
Conversation
|
The emitters are determined by the terrain type definitions, specifically: Water = {
AeonGroundFX01 = { EmitterBasePath .. 'aeon_groundfx_emit.bp', },
AeonGroundFXT1Engineer = { EmitterBasePath .. 'aeon_t1eng_groundfx01_emit.bp', },
AeonGroundFXT2Engineer = {
EmitterBasePath .. 'aeon_t2eng_groundfx01_emit.bp',
EmitterBasePath .. 'aeon_t2eng_groundfx02_emit.bp',
},
BackWake = {
EmitterBasePath .. 'water_move_trail_back_02_emit.bp',
EmitterBasePath .. 'water_move_trail_back_03_emit.bp',
EmitterBasePath .. 'water_move_trail_back_04_emit.bp',
},
Hover01 = { EmitterBasePath .. 'tt_water_hover01_01_emit.bp', },
LeftFrontWake = { EmitterBasePath .. 'water_move_wake_front_l_01_emit.bp', },
RightFrontWake = { EmitterBasePath .. 'water_move_wake_front_r_01_emit.bp', },
SeraphimGroundFX01 = {
EmitterBasePath .. 'seraphim_groundfx_emit.bp',
EmitterBasePath .. 'seraphim_groundfx_02_emit.bp',
},
SeraphimGroundFX02 = {
EmitterBasePath .. 'seraphim_groundfx_03_emit.bp',
EmitterBasePath .. 'seraphim_groundfx_04_emit.bp',
},
},
``` |
|
I'm merging this in as it works on its own. Additional changes can be done via new pull requests |
@Garanas Sorry to bother you, but I recently came across this pull request while studying unit movement effects, and I've also encountered a similar issue: in your second video, between 2 and 5 seconds, the trails of moving naval units suddenly disappear, and they only reappear by zooming in and out.Two units also exhibit this problem at 18 seconds in your first video.
Is there any way to avoid this problem?
I don't seem to have this issue when adding movement effects to army units; the effects don't suddenly disappear when army units move. However, this problem frequently occurs with naval unit movement effects. |
|
@zhanghm18GIT I don't know why this happens. We can only interact with emitters. The behavior of particles (created by emitters) is entirely in the engine. |
|
@zhanghm18GIT With thanks to @speed2CZ , a fix for missing ship wake effects is found in #6981! |
|
@Garanas Thank you for letting me know. I'm very glad to see this issue resolved. |




Description of the proposed changes
This reduces the life time of water trails to a similar value to what we have for footprints and tread marks. When you zoom out and back in all emitters are recomputed. The water trails are surprisingly complex (multiple emitters per unit that last 10 to 15 seconds on average) and are therefore a prime target for a frame time spike.
Adjusted life time
water-trail-adjusted.mp4
Old life time
water-trail-old.mp4
Testing done on the proposed changes
Spawn in naval units and observe the trail.
Additional context
I'd also like to review the other water trail effects.
Rebased version of #6088
Checklist