Optimized resource distribution for interactive TV applications