move SheetSize to Graphics section of settings
This commit is contained in:
@@ -62,6 +62,7 @@ namespace OpenRA.GameRules
|
|||||||
|
|
||||||
public int BatchSize = 8192;
|
public int BatchSize = 8192;
|
||||||
public int NumTempBuffers = 8;
|
public int NumTempBuffers = 8;
|
||||||
|
public int SheetSize = 2048;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SoundSettings
|
public class SoundSettings
|
||||||
@@ -99,7 +100,6 @@ namespace OpenRA.GameRules
|
|||||||
|
|
||||||
// Internal game settings
|
// Internal game settings
|
||||||
public int Timestep = 40;
|
public int Timestep = 40;
|
||||||
public int SheetSize = 2048;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Settings
|
public class Settings
|
||||||
|
|||||||
@@ -12,12 +12,12 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using OpenRA.FileFormats;
|
using OpenRA.FileFormats;
|
||||||
using OpenRA.FileFormats.Graphics;
|
using OpenRA.FileFormats.Graphics;
|
||||||
using OpenRA.Support;
|
using OpenRA.Support;
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace OpenRA.Graphics
|
namespace OpenRA.Graphics
|
||||||
{
|
{
|
||||||
@@ -47,7 +47,7 @@ namespace OpenRA.Graphics
|
|||||||
{
|
{
|
||||||
TempBufferSize = Game.Settings.Graphics.BatchSize;
|
TempBufferSize = Game.Settings.Graphics.BatchSize;
|
||||||
TempBufferCount = Game.Settings.Graphics.NumTempBuffers;
|
TempBufferCount = Game.Settings.Graphics.NumTempBuffers;
|
||||||
SheetSize = Game.Settings.Game.SheetSize; // TODO: move to Graphics.
|
SheetSize = Game.Settings.Graphics.SheetSize;
|
||||||
|
|
||||||
SpriteShader = device.CreateShader("world-shp");
|
SpriteShader = device.CreateShader("world-shp");
|
||||||
LineShader = device.CreateShader("world-line");
|
LineShader = device.CreateShader("world-line");
|
||||||
|
|||||||
Reference in New Issue
Block a user