Optimizing

Discussion in 'Mapping Questions & Discussion' started by Swordz, Sep 11, 2009.

  1. Swordz

    Swordz L5: Dapper Member

    Messages:
    224
    Positive Ratings:
    37
    So, i finished my map. But then i found that Portal Flow was taking years to compile.

    So i've filled my map with func_details. it helped, but it still take years.

    Used some hint brushes, helped too but portalflow doesn't get past the number 2.

    I tried using area portals, but no. I sealed all entrances, but hammer always found a leak :( it's like, "IF I NOCLIP THROUGHT THE WALL AND ROCKET JUMP TO THE SKYBOX I CAN GET PAST YOUR ****TY PORTAL NOOB"

    There is another optimizing thing? I will put more hints...
     
  2. Cameron:D

    Cameron:D L6: Sharp Member

    Messages:
    363
    Positive Ratings:
    145
  3. Tapp

    Tapp L10: Glamorous Member

    Messages:
    776
    Positive Ratings:
    215
    I had a problem kinda like that, have you tried deleting local content and re-installing? It could just be fragmentation. Anyway, try loading the pointfile afterwards, or just func_detail everything that isn't a big square wall.
     
  4. Cameron:D

    Cameron:D L6: Sharp Member

    Messages:
    363
    Positive Ratings:
    145
    Portal flow is calculating what visleaves can and cant see each other. Reinstalling should have no effect on compile times.

    There is another thread [ame="http://tf2maps.net/forums/showthread.php?t=9099"]why portal flow is taking to long? - TF2Maps.net[/ame]
    about a similar thing, and there are lots of suggestions that have been given.
     
  5. jpr

    aa jpr

    Messages:
    1,095
    Positive Ratings:
    543
    It sounds to me like you turned everything into func_details, which would explain why your areaportals are leaking. If you turn everything into func details... Ugh, just read the tutorial
     
  6. Waif

    Waif L7: Fancy Member

    Messages:
    413
    Positive Ratings:
    125
  7. Tapp

    Tapp L10: Glamorous Member

    Messages:
    776
    Positive Ratings:
    215
    I know what you mean, but recently I had a problem where vvis.exe screwed up, and I thought there was a chance it could have been that.
     
  8. Swordz

    Swordz L5: Dapper Member

    Messages:
    224
    Positive Ratings:
    37
    So that's why that red line clips throught the wall?

    NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
     
  9. Psy

    aa Psy The Imp Queen

    Messages:
    1,705
    Positive Ratings:
    1,479
    Check out this thread to see how you should be func_detailing brushes.
     
    • Thanks Thanks x 1
  10. Swordz

    Swordz L5: Dapper Member

    Messages:
    224
    Positive Ratings:
    37
    the problem is, if i func_detail all the complex geometry, i get the t-junction error

    i think the only thing i can do is try the areaportal again...

    But portalflow is much faster now, still not good, but faster...
     
  11. Swordz

    Swordz L5: Dapper Member

    Messages:
    224
    Positive Ratings:
    37
    yay the area portal works now, but portal flow still doesn't get past number 1 omg...

    what else i can do? :(
     
  12. Psy

    aa Psy The Imp Queen

    Messages:
    1,705
    Positive Ratings:
    1,479
    Post a screenshot of your map in Hammer with everything turned off apart from world brushes.
     
  13. Swordz

    Swordz L5: Dapper Member

    Messages:
    224
    Positive Ratings:
    37
    the map even runs at constant 60 fps at fast vvis :/


    everything turned off



    everything turned on (except brush entities and hints because they cover the entire view/ceiling/bla)

    i will try to make a smaller skybox...
     
    Last edited: Sep 12, 2009
  14. Psy

    aa Psy The Imp Queen

    Messages:
    1,705
    Positive Ratings:
    1,479
    Can't you func_detail that weird platform in the corner?
     
  15. Swordz

    Swordz L5: Dapper Member

    Messages:
    224
    Positive Ratings:
    37
    if i do this, i will get the t-junction error that makes the map fail to compile :/
     
  16. Psy

    aa Psy The Imp Queen

    Messages:
    1,705
    Positive Ratings:
    1,479
    Run your compile log through this. and also post it here.

    I really don't understand why you're getting t-junction errors. :\
     
  17. Swordz

    Swordz L5: Dapper Member

    Messages:
    224
    Positive Ratings:
    37
    I don't get any errors. (only those that can be avoided)

    but if i change that platform to func_detail i get a t-junction error in 5 seconds :/
     
  18. Psy

    aa Psy The Imp Queen

    Messages:
    1,705
    Positive Ratings:
    1,479
    Run that particular compile log through is what I meant.
     
  19. Swordz

    Swordz L5: Dapper Member

    Messages:
    224
    Positive Ratings:
    37
    FixTjuncs...
    Too many t-junctions to fix up! (2712 prims, max 32768 :: 65631 indices, max 65536)


    EDIT: it doesn't crash if i assign it to func_viscluster.

    and that platform got thousands of blue vis blocks, and now it has 0 blocks. I think i solved it.



    EDIT2: Still nothing. everything i can optimize is optimizated :/
     
    Last edited: Sep 12, 2009
  20. Cameron:D

    Cameron:D L6: Sharp Member

    Messages:
    363
    Positive Ratings:
    145
    Instead of func_detail, try func_brush for that platform.
    Also, in those screenshots you have a lot of lights :|