Exclude from GI

is there a way to make an object receive gi but not contribute?

lets say i’m indoors and outside there are lots of trees far a way, i want them to receive gi but if its going to speed things a lot then i don’t care for them to generate any gi.

i know i can use the rayswitch but that’s going to disable shadows too. perhaps have the option in the rayswitch for receive - contribute?

You can put pure black (diffuse level 0) material in rayswitch’s GI slot. This will not generate GI and will cast shadows. However, I am not sure if there will be any noticeable speed impact.