Crysis 1 wasn't badly optimized, they simply made the mistake of aiming at latest-gen hardware for it.

Also XI was really a straight port from the PS2 version so it was running on CPU power, barely touching the GPU.