Search Unity

Headless Server - High Cpu Usage

Discussion in 'Linux' started by newbie90, Nov 18, 2016.

  1. newbie90

    newbie90

    Joined:
    Feb 4, 2016
    Posts:
    5
    Hello,
    I have the following situation: I'm working on a project, where i use multiple headless server instances (each server instance is a scene)

    Building the instance in windows, with vsync enabled (every second v blank - 30fps) when the scene is idle , i get 3-5 % cpu usage.

    If i make the same build as an ubuntu binary with headless mode checked, and run it on a server , i get a much higher cpu usage. ( it takes an entire cpu? )

    My questions are:
    1) Does a headless build take into account the Application.targetFramerate setting? (i know there is no screen to output to - but i still need the limit the targetFramerate places)
    2) Does the performance differ so much between Windows and Ubuntu?
     
  2. Tak

    Tak

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Yes, you should set the target framerate. (A headless server won't be able to use vsync.)
     
    newbie90 likes this.