optimized rendering

NOTE: commented recvfrom() in client::update() out because it caused the
program to crash after a few seconds