call drawdevices only every 500ms, added profiling code
Fixed merge error