I enable the attribute of Run in Background,Released into an exe,then,run it.The resource manager shows it accounts for 1% of the CPU,but When I put it to minimize, that runs in the background, accounts for 32% of the CPU。The whole scene in addition to 20000 a polyhedral model what all have no。I want to know what’s the solution。
Personally, I’d watch for OnApplicationFocus
events, and spot when your application is no longer the main focus. When it’s not focused, stop updating the expensive parts of your application. You can do that by deactivating parts of your scene, or putting up a pause screen, etc.