Browse Source

Fixes to make the game run on Xbox One: limit allocated heap memory to 32 MB (for now). Also copy PDB file for engine to native plugin directory.

console
Nico de Poel 5 years ago
parent
commit
9b6a15337d
  1. 4
      Assets/Scripts/UniQuake.cs
  2. 3
      engine/Windows/VisualStudio/uniquake.vcxproj

4
Assets/Scripts/UniQuake.cs

@ -5,7 +5,11 @@ using UnityEngine;
public partial class UniQuake: MonoBehaviour public partial class UniQuake: MonoBehaviour
{ {
#if UNITY_GAMECORE_XBOXONE
private const int DefaultMemSize = 0x2000000; // Xbox One is limited to 32 MB of heap space for now...
#else
private const int DefaultMemSize = 0x8000000; // 128 MB of heap space private const int DefaultMemSize = 0x8000000; // 128 MB of heap space
#endif
public int memorySize = DefaultMemSize; public int memorySize = DefaultMemSize;

3
engine/Windows/VisualStudio/uniquake.vcxproj

@ -509,7 +509,8 @@ copy "$(SolutionDir)\..\SDL2\lib\*.dll" "$(TargetDir)"</Command>
<SubSystem>Windows</SubSystem> <SubSystem>Windows</SubSystem>
</Link> </Link>
<PostBuildEvent> <PostBuildEvent>
<Command>copy "$(TargetDir)$(TargetName).dll" $(SolutionDir)..\..\..\Assets\Plugins\gamecore\xboxone\uniquake.dll</Command>
<Command>copy "$(TargetDir)$(TargetName).dll" $(SolutionDir)..\..\..\Assets\Plugins\gamecore\xboxone\uniquake.dll
copy "$(TargetDir)$(TargetName).pdb" $(SolutionDir)..\..\..\Assets\Plugins\gamecore\xboxone\uniquake.pdb</Command>
</PostBuildEvent> </PostBuildEvent>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Portable|ORBIS'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug Portable|ORBIS'">

Loading…
Cancel
Save