Jump to content

Recommended Posts

Posted

Hey everyone,

Very small and weird question, but I haven't seen it being asked anywhere or find something about it: With prop_static, you can specify fade distances. You specify a range for when it's supposed to be visible, and when it'll start to fade to nothing. I always wondered if this incurs a CPU cost of some sorts, as opposed to not specifying it all. If it does, I'd rather try to find a way to avoid using this at all. In the level that I'm working on right now, I could theoretically avoid doing it all, but for some models I could specify fade distances to avoid having to cut up more visleafs. I just wondered if it was worth it trying to not have to specify fade distances at all (with my current idea that doing so results in more CPU processing).

Any thoughts?

Posted

If I recall correctly, the fading-out part does incur a small CPU cost, but the benefits of having the models no longer rendered far outweighs this small issue.

If you're still worried about it though, you can set the start fade and end fade settings to the same thing so they instantly disappear instead. However, this is quite jarring if the fade-out is visible (The advantage of having it fade is that if you have to have it fade in the player's view, then it's less noticeable). So be careful with this idea.

Posted
1 hour ago, That50'sGuy said:

If I recall correctly, the fading-out part does incur a small CPU cost, but the benefits of having the models no longer rendered far outweighs this small issue.

If you're still worried about it though, you can set the start fade and end fade settings to the same thing so they instantly disappear instead. However, this is quite jarring if the fade-out is visible (The advantage of having it fade is that if you have to have it fade in the player's view, then it's less noticeable). So be careful with this idea.

Hey, excellent response! Thanks for the suggestions :) should I need to fade, it'll probably be the instant ones for props that are just around a corner that I can't cut off in visleafs.

Posted
7 hours ago, Lizard said:

The idea is to have very short distance between Start Fade and Fade. The biggest cost is where the prop is in "fading" state so ideally you want to clamp it to short distances if possible.

Ah, I see. So the actual only cost is when you're entering the fading zone? That's interesting. In that case, I might just use Ringel's suggestion (below) to get rid of that particular cost ? thanks for all the great answers people!

 

10 hours ago, Ringel said:

You only have to set the "End Fade Dist/Pixels" to achieve that. You can leave the "Start Dist/Pixels" at -1.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...