<SpellboundApp root-memory="28388608" runner="PMRunnerDefault" >

	<!--
		*** attributes for CreateProcess ***
	
		memory-checked: true|false
			If true on each memory block operation (free, alloc) the complete memory area is checked.
			Default is false.
		memory-synchronized: true|false
			If true the access to the memory area is synchronized. This is not needed if memory is only accessed in one thread.
			Default is true.
		memory-cleared: true|false
			If true the memory is cleared with a specific marker during each alloc and free.
			Default is true in _HYBRID and _DEBUG and false else.
		memory-size: ULONG
			Size of the memory area for this process.
			Must be greater than 65536.
			It is a good idea to use multiples of 4096.
		memory-base: POINTER
			The base of the memory area for this process.
			If the memory address is not allocatable the program will quit.
			If the base address is 0 the system will determine an available address.
			Defaults to 0.
		physical-memory-size: ULONG
			Size of the extra physical memory which is allocated for this process.
			Must be 0 or greater than 65536.
			It is a good idea to use multiples of 4096.
			See MemoryManager::AllocGPU for details.
			Default is 0.
		type: <class>
			This must be the name of a class which is derived from BasicProcess.
		instance-name: STRING
			This is a name under which this process instance can be accessed further on in this file.
			The name is also visible in several debug screens for processes and memory.
		thread-pool-bit: ULONG
			This is the index of the bit used to determine the threads which may handle this process.
			The value must be less than 32.
			The default is 0.
	-->

	<CreateProcess instance-name="main" memory-size="80000000" type="Gothic4Process"  thread-pool-bit="2" memory-synchronized="true" memory-logged="false" stall-time="1" >
		<ConstraintInterval interval-length="20" />
		<Message type="Gothic4InitMessage" />
	</CreateProcess>
	
	<CreateProcess instance-name="renderer" memory-size="140000000" type="SBRendererProcess" memory-synchronized="true" memory-logged="false" thread-pool-bit="1" stall-time="1" >
		<ConstraintInterval interval-length="10" />
		<Message type="SBRendererInitMessage" />
	</CreateProcess>
	

    <CreateProcess instance-name="backgroundloader" memory-size="40000000" type="BackgroundLoaderImpl" memory-synchronized="false" stall-time="4" >
        <ConstraintInterval interval-length="50" />
        <Message type="AssetInitMessage" sStaticListFile="static.lst"  bSlowLoading="false"/>
    </CreateProcess> 
     
	<CreateProcess instance-name="AudioEngine" memory-size="10000000" type="SBAudioProcess" >
		<ConstraintInterval interval-length="50" />
		<Message type="AudioInitMessage" bPreloadAllSounds="false"  bAllowOnDemandLoading="false"/>
	</CreateProcess>

    <CreateProcess instance-name="quest" memory-size="800000" type="QuestManager" memory-synchronized="false" stall-time="1" >
        <ConstraintInterval interval-length="100" />
        <Message type="QuestManagerInitMessage" />
    </CreateProcess>
    <CreateProcess instance-name="dialog" memory-size="1000000" type="DialogManager" memory-synchronized="false" stall-time="1" >
        <ConstraintInterval interval-length="100" />
        <Message type="DialogManagerInitMessage" />
    </CreateProcess>
   <CreateProcess instance-name="remote" memory-size="2500000" type="RemoteConsoleProcess" memory-synchronized="false" stall-time="1" debug="true">
        <ConstraintInterval interval-length="20" />
        <Message type="RemoteConsoleInitMessage" uwListenAtPort="9876" />
    </CreateProcess>
    <CreateProcess instance-name="assetmanager" memory-size="235000000" type="AssetManagerImpl" memory-synchronized="true" virtual-memory="true" stall-time="4" >
        <ConstraintInterval interval-length="50" />
        <Message type="AssetManagerInitMessage" ulStartupMemorySize_CPU="5000000"  ulStartupMemorySize_GPU="0"/>
    </CreateProcess>

    <CreateProcess instance-name="weather" memory-size="1572864" type="SBWeatherProcess" memory-synchronized="false" stall-time="1" >
        <ConstraintInterval interval-length="100" />
        <Message type="WeatherInitMessage" />
    </CreateProcess>
    <CreateProcess instance-name="input" memory-size="65536" type="SBInputProcess" memory-synchronized="false" stall-time="1" >
        <ConstraintInterval interval-length="10" />
        <Message type="SBInputInitMessage" />
    </CreateProcess>
    
    <CreateProcess instance-name="hdstreaming" memory-size="65536" type="HDStreamingProcess" memory-synchronized="false" stall-time="1" >
        <ConstraintInterval interval-length="10" />
        <Message type="InitHDStreamingProcess" sCSVRegisteredProcessIDs="1,2,4" />
        <!-- Registered Modules for Hard Disk Streaming Processes : Gothic4Process(1), ... -->
    </CreateProcess>

    <CreateProcess instance-name="dataChange" memory-size="65536" type="DataChangeMonitor" memory-synchronized="false" stall-time="1" >
        <ConstraintInterval interval-length="500" />
    </CreateProcess>

    <CreateProcess instance-name="TerrainDecompressor" memory-size="20000000" type="SBTerrainDecompressorProcess" memory-synchronized="false" stall-time="5" >
        <ConstraintInterval interval-length="50" />
        <Message type="SBTerrainInitMessage" />
    </CreateProcess>

    <CreateProcess instance-name="Navigation" memory-size="8000000" type="SBNavigationProcess" memory-synchronized="false" stall-time="5" >
        <ConstraintInterval interval-length="50" />
    </CreateProcess>

<!--
    <CreateProcess instance-name="LoggingProcess" memory-size="65536" type="LoggingProcess" memory-synchronized="false" stall-time="5" >
        <Message type="Logging_Init" bEnabled="false" />
        <ConstraintInterval interval-length="500" />
    </CreateProcess>
-->
  <CreateGroup name="main_group" >
    <ProcessInstance name="main" />
  </CreateGroup>
    
  <CreateGroup name="renderer" >
    <ProcessInstance name="renderer" />
  </CreateGroup>
      
  <ThreadConfig platform="PC" cores="1" >

    <Thread hardware-mask="00000001" thread-pool-mask="00000002" />
    <Thread hardware-mask="00000002" thread-pool-mask="00000004" />
    <Thread hardware-mask="fffffffe" thread-pool-mask="fffffff9" />
    <Thread hardware-mask="fffffffe" thread-pool-mask="fffffff9" />
    <Thread hardware-mask="fffffffe" thread-pool-mask="fffffff9" />
    <Thread hardware-mask="fffffffe" thread-pool-mask="fffffff9" />
    <Thread hardware-mask="fffffffe" thread-pool-mask="fffffff9" />
    <Thread hardware-mask="fffffffe" thread-pool-mask="fffffff9" />

  </ThreadConfig>
  
  <ThreadConfig platform="X360" cores="6" >
    <Thread hardware-mask="00000001" thread-pool-mask="00000002" />
    <Thread hardware-mask="00000002" thread-pool-mask="fffffffd" />
    <Thread hardware-mask="00000004" thread-pool-mask="fffffffd" />
    <Thread hardware-mask="00000008" thread-pool-mask="fffffffd" />
    <Thread hardware-mask="00000010" thread-pool-mask="fffffffd" />
    <Thread hardware-mask="00000020" thread-pool-mask="fffffffd" />
  </ThreadConfig>
  
</SpellboundApp>
