Culling of Objects not in POV
Posted: 30 Jan 2008, 11:20
I'd like a feature, for Features and Units, where if they have the tag "cullifNoPOV=1;", they are only drawn if in the camera's view for a certain number of frames, based on a check every few frames.
Otherwise, they're culled from rendering each pass. Should really boost performance for Features especially.
Personally, I think it might work well to update based on the camera POV maybe once every SlowUpdate- not every frame, to save calculations.
Just have stuff do an alpha fade in over a 10-frame period, or whatever, so that pop-in will happen, but be visually graceful. Better than forcing it per-frame, imo, and far cheaper- stuff with this tag won't be drawn at all, if the user is zooming their camera around the map all the time, but will be drawn if they come to a halt for a half-second or so, and won't just pop into existence.
Otherwise, they're culled from rendering each pass. Should really boost performance for Features especially.
Personally, I think it might work well to update based on the camera POV maybe once every SlowUpdate- not every frame, to save calculations.
Just have stuff do an alpha fade in over a 10-frame period, or whatever, so that pop-in will happen, but be visually graceful. Better than forcing it per-frame, imo, and far cheaper- stuff with this tag won't be drawn at all, if the user is zooming their camera around the map all the time, but will be drawn if they come to a halt for a half-second or so, and won't just pop into existence.