diff --git a/Makefile b/Makefile index 9a25627cfe..6c968599c7 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ COMMON_LIBS = System.dll System.Core.dll System.Drawing.dll System.Xml.dll fileformats_SRCS = $(shell find OpenRa.FileFormats/ -iname '*.cs') fileformats_TARGET = OpenRa.FileFormats.dll fileformats_KIND = library -fileformats_LIBS = $(COMMON_LIBS) +fileformats_LIBS = $(COMMON_LIBS) thirdparty/Tao/Tao.Glfw.dll gl_SRCS = $(shell find OpenRa.Gl/ -iname '*.cs') gl_TARGET = OpenRa.Gl.dll diff --git a/OpenRa.FileFormats/OpenRa.FileFormats.csproj b/OpenRa.FileFormats/OpenRa.FileFormats.csproj index 0408851752..4df27feeff 100644 --- a/OpenRa.FileFormats/OpenRa.FileFormats.csproj +++ b/OpenRa.FileFormats/OpenRa.FileFormats.csproj @@ -1,4 +1,5 @@ - + + Debug AnyCPU @@ -24,6 +25,8 @@ full AnyCPU prompt + 4 + false bin\Release\ @@ -33,6 +36,7 @@ pdbonly AnyCPU prompt + 4 @@ -42,6 +46,10 @@ + + False + ..\thirdparty\Tao\Tao.Glfw.dll + diff --git a/OpenRa.FileFormats/Support/Stopwatch.cs b/OpenRa.FileFormats/Support/Stopwatch.cs index a8a5ae84f5..1b23824b88 100755 --- a/OpenRa.FileFormats/Support/Stopwatch.cs +++ b/OpenRa.FileFormats/Support/Stopwatch.cs @@ -1,4 +1,4 @@ -#region Copyright & License Information +#region Copyright & License Information /* * Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford. * This file is part of OpenRA. @@ -19,35 +19,26 @@ #endregion using System.Runtime.InteropServices; +using Tao.Glfw; namespace OpenRa.Support { public class Stopwatch { - //[DllImport("kernel32.dll")] - static bool QueryPerformanceCounter(out long value) { value = 1; return true; } - //[DllImport("kernel32.dll")] - static bool QueryPerformanceFrequency(out long frequency) { frequency = 1; return true; } - - long freq, start; - + double start; public Stopwatch() { - QueryPerformanceFrequency(out freq); - QueryPerformanceCounter(out start); + Reset(); } public double ElapsedTime() { - long current; - QueryPerformanceCounter(out current); - - return (current - start) / (double)freq; + return (Glfw.glfwGetTime() - start); } public void Reset() { - QueryPerformanceCounter(out start); + start = Glfw.glfwGetTime(); } } } diff --git a/OpenRa.Game/OpenRa.Game.csproj b/OpenRa.Game/OpenRa.Game.csproj index a1c49da2c3..2f12f4c531 100644 --- a/OpenRa.Game/OpenRa.Game.csproj +++ b/OpenRa.Game/OpenRa.Game.csproj @@ -66,14 +66,14 @@ - - False - ..\thirdparty\ISE.FreeType.dll - False ..\thirdparty\Tao\Tao.OpenGl.dll + + False + ..\thirdparty\ISE.FreeType.dll +