Problem with a Device.Present

I was looking for Device.Present in older posts on this forum, I tried everything. Still according to the profiler it takes about 40% of performance. Is there someone who had this problem too?

Nobody?