Search Unity

How to minimize resource use in a background app?

Discussion in 'Editor & General Support' started by dmennenoh, Aug 7, 2019.

  1. dmennenoh

    dmennenoh

    Joined:
    Jul 1, 2015
    Posts:
    379
    I have a launcher app that just plays a video and then has buttons to launch other apps. The other apps are launched through process.start. When I do that, I pause the video and set it's component to disabled. There are no Update methods defined... but while in "in the background" the launcher is using around 7% CPU and upwards of 20% GPU. Wondering what I can do to minimize this and get closer to 0% on both.
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    You can set the target Framerate to something like 5 or even lower.
    You could also try to set the process priority of the launcher to low so the "Front " process the all the power it needs.
    Another option would to disable run in background.
     
    dmennenoh likes this.
  3. dmennenoh

    dmennenoh

    Joined:
    Jul 1, 2015
    Posts:
    379
    Thanks a ton! Turning off run in background did the trick. Dropped both to 0%.