ZeroK-RTS / Chobby

Spring RTS Ingame lobby project
16 stars 37 forks source link

Units being drawn past icon distance; Chobby overrides LOD dist setting #638

Open Histidine91 opened 6 years ago

Histidine91 commented 6 years ago

User Goo on Discord describes the following issue:

About question: ico dist 150, LOD 9999(default) and no matter how long i scroll down - all units are drawn in 3d and in 2d icons. I dont even see 3d models under icons, but if i angle camera - its there. And of course - huge fps drops. ico dist 150, LOD 180 (slightly more than 150 to alighn with camera angle) - all units rdawn in 3d when i am scrolled close to scene and all units drawn as 2d icons when scrolled far. - no fps drops, and in fact a little boost in performance.

So we have two layers of problem here:

sprunk commented 6 years ago

Check how this works with luaui (and luarules?) disabled. Lua can draw the model on its own even past icon zoomout (check out the commander red/blue morph effect for instance) so perhaps some sort of this effect could be causing this.

The simple solution would probably be for LOD distance to be tied to icon distance.

sprunk commented 6 years ago

ico dist 150, LOD 9999(default) and no matter how long i scroll down - all units are drawn in 3d and in 2d icons.

Engine source says iconized units are not drawn: https://github.com/spring/spring/blob/maintenance/rts/Rendering/UnitDrawer.cpp#L562

~~Does the user have default settings? There are widgets that override disticon with hueg values and draw icons on top of models on their own: https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaUI/Widgets/gui_icontransition.lua https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaUI/Widgets/gui_iconheight.lua~~ After asking it looks like he has these two disabled.