Quantcast
Channel: Questions in topic: "dll"
Viewing all articles
Browse latest Browse all 706

[solved]probelm of cpu usage when hide application by windwos.dll

$
0
0
hi, I am developing standalone application by unity3d. I has function of tracking which program is running while user use computer. so i used plugin dll to hide application while it tracking programs. Here's the code --------------------------------------------------------------------------------------------------- [DllImport("user32.dll")] public static extern int ShowWindow(int hwnd, int nCmdShow); public void hide_application() { Main_Handle = GetActiveWindow(); ShowWindow(Main_Handle,0); } ----------------------------------------------------------------------------- BUT, HERE'S A QUESTION. as you can see in screenshot. when i hide application. the cpu usage increase so highly. It would be quite annoying, when user use another program. how can i decrease cpu usage and also hide application. please help me. thanks please don't reply why don't use visual studio c# instead of unity3d. ^^*

Viewing all articles
Browse latest Browse all 706

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>