1 | initial version |
Increment a framecounter every frame and then put your process block inside this condition.
if (framecounter % 5 == 0)
{
//processing...
}
This condition will verify when framecounter is a multiple of 5, which will happen every 5 frames.