Small Optimization Question

Beetle

L9: Fashionable Member
Aug 17, 2008
627
178
I was wondering if disabling shadows and receiving shadows on small, not-so-obvious models would make it compile faster and/or help the engine not work so hard. Same question with making something non-solid. I know the answer will probably be "not a noticeable change in performance," but I was just wondering for the sake of knowledge.
 
Feb 18, 2009
640
629
My response would be, does it actually make it look/behave any better? In other words, when considering one object, go for what looks best. When considering a large amount of objects, compromise. So for your example, does disabling shadows make it look any better, and does having collisions disabled become confusing when walking over/shooting at it?
 

StickZer0

💙💙💃💙💙
aa
Nov 25, 2008
664
647
Disabling casting shadows won't affect performance at all, however disabling recieving shadows will give an unnoticeable performance increase. It may speed up the compile, but honestly, it's not worth doing.

I can't say for collisions, but i'd assume you'd save a miniscule amount of CPU by disabling them. It's really not worth worrying about.
 

UKCS-Alias

Mann vs Machine... or... Mapper vs Meta?
aa
Sep 8, 2008
1,264
816
prop_dynamic has static shadows that only affect the compile, dynamic props however have dynamic shadows. Dynamic shadows sometimes can improve the speed. Its often not that much though. but on big areas it can have some effect.

Collisions of complex objects are better to be disabled and then remade with nodraw brushes. In that case it would be usefull. however, doorway collisions realy arent any use to disable as it are such low detailed models. Same with small rocks. Its rare that it has any use (for example the badlands spiral rock usualy is better to redo the collisions for).

Its usualy better to use hint brushes or areaportals for improving the fps. Those will have the biggest effect.
 

Tapp

L10: Glamorous Member
Jan 26, 2009
776
215
lighting will only ever affect compile time, file size and sometimes the cache. Dynamic objects are so few and far between they're best to leave with lighting anyway.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,696
2,580
Dynamic shadows usually look pretty cheap anyway. I would disable them on, say, color-changing CONTROL POINT signs for that reason alone. Doesn't disabling receiving shadows make objects fullbright?
 

Beetle

L9: Fashionable Member
Aug 17, 2008
627
178
Well I'm not sure, but I was just referring to unimportant objects anyway, like the lunch bag, or the weights, or the clock, etc.