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:
committed by
Paul Chote
parent
ea068a36f7
commit
bb536ee4fc
@@ -16,9 +16,9 @@ namespace OpenRA.Platforms.Default
|
||||
{
|
||||
public class DefaultPlatform : IPlatform
|
||||
{
|
||||
public IPlatformWindow CreateWindow(Size size, WindowMode windowMode)
|
||||
public IPlatformWindow CreateWindow(Size size, WindowMode windowMode, int batchSize)
|
||||
{
|
||||
return new Sdl2PlatformWindow(size, windowMode);
|
||||
return new Sdl2PlatformWindow(size, windowMode, batchSize);
|
||||
}
|
||||
|
||||
public ISoundEngine CreateSound(string device)
|
||||
|
||||
Reference in New Issue
Block a user