engine: merged part of the ioq3 com_frame code to fix cpu usage issues, refs #572