Small Optimization Question

Discussion in 'Mapping Questions & Discussion' started by Beetle, Aug 12, 2010.

  1. Beetle

    Beetle L9: Fashionable Member

    Messages:
    627
    Positive Ratings:
    141
    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.
     
  2. Mick-a-nator

    aa Mick-a-nator

    Messages:
    640
    Positive Ratings:
    314
    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?
     
  3. StickZer0

    aa StickZer0 💙💙💃💙💙

    Messages:
    664
    Positive Ratings:
    667
    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.
     
    • Thanks Thanks x 2
  4. UKCS-Alias

    aa UKCS-Alias Mann vs Machine... or... Mapper vs Meta?

    Messages:
    1,264
    Positive Ratings:
    748
    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.
     
    • Thanks Thanks x 1
  5. Tapp

    Tapp L10: Glamorous Member

    Messages:
    776
    Positive Ratings:
    211
    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.
     
    • Thanks Thanks x 1
  6. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,219
    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?
     
  7. Beetle

    Beetle L9: Fashionable Member

    Messages:
    627
    Positive Ratings:
    141
    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.
     
  8. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160