View Issue Details

IDProjectCategoryView StatusLast Update
0006047Spring engineGeneralpublic2019-01-16 22:41
Reporterraaar Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version104.0 
Summary0006047: option to have engine shields consume less particles
Descriptioncurrently engine shields seem to consume a fixed amount of particles from the particle pool: 192

this means that even on high graphics settings (20k particle limit), if both teams decide to build lots of shielded units, like 25 each on a 2v2 game, the particle limit is reached and explosions and many other ceg-based effects will no longer be rendered.

the shields add to the particle limit even if they're not visible!

- there should be an option to lower the detail level or something for smaller shields to avoid this problem.
Steps To Reproducegame metal factions v0.999
spawn "sphere_golem" (small shield) or "sphere_aegis" (large shield)

check the particle counts on alt-n view

TagsNo tags attached.
Checked infolog.txt for Errors

Activities

raaar

2018-09-30 06:16

reporter   ~0019374

if you spawn a shielded unit for an enemy team halfway across the map, outside of LOS coverage, the active particle count still grows by 192

Kloot

2018-09-30 12:34

developer   ~0019375

there are alternatives to engine shield rendering which both look and perform better, start using them.

lhog

2018-09-30 14:11

reporter   ~0019376

@raaar, here is an example how shields can be implemented in Lua:

https://github.com/lhog/Zero-K/blob/master/LuaRules/Gadgets/lups_shield.lua
https://github.com/lhog/Zero-K/blob/master/lups/ParticleClasses/ShieldSphereColorHQ.lua

I'm a bit more experienced with GLSL now, than I was when the Lups shields were done, so I'd do a few things differently, but generally it should provide a good example to start with for you.

raaar

2018-10-03 06:53

reporter   ~0019377

thanks, i'll check that out.

Issue History

Date Modified Username Field Change
2018-09-30 06:13 raaar New Issue
2018-09-30 06:16 raaar Note Added: 0019374
2018-09-30 12:34 Kloot Note Added: 0019375
2018-09-30 12:35 Kloot Severity major => minor
2018-09-30 14:11 lhog Note Added: 0019376
2018-10-03 06:53 raaar Note Added: 0019377
2019-01-16 22:41 Kloot Status new => closed
2019-01-16 22:41 Kloot Resolution open => no change required