Run graphics rendering on a dedicated thread.

The main game thread can offload some of the CPU cost to the rendering thread, freeing up its time to run more logic and render ticks.
This commit is contained in:
RoosterDragon
2018-05-26 18:18:13 +01:00
committed by Paul Chote
parent 8ec90525e3
commit b96e062a0d
14 changed files with 875 additions and 48 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA
{
public interface IPlatform
{
IGraphicsDevice CreateGraphics(Size size, WindowMode windowMode);
IGraphicsDevice CreateGraphics(Size size, WindowMode windowMode, int batchSize);
ISoundEngine CreateSound(string device);
}