From bf1449e3a7817e240afe6026d680fb8203b14f10 Mon Sep 17 00:00:00 2001 From: Azaezel Date: Fri, 10 Jul 2015 19:33:42 -0500 Subject: [PATCH] fills in profiler timer fallback as per remmed out lines in other samples. see https://github.com/GarageGames/Torque3D/issues/1349 for report, and https://gist.github.com/Azaezel/2aafb88cf0d642418051 for result --- Engine/source/platform/profiler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Engine/source/platform/profiler.cpp b/Engine/source/platform/profiler.cpp index ae35035f7..ca34b4593 100644 --- a/Engine/source/platform/profiler.cpp +++ b/Engine/source/platform/profiler.cpp @@ -155,11 +155,13 @@ U32 endHighResolutionTimer(U32 time[2]) { void startHighResolutionTimer(U32 time[2]) { + time[0] = Platform::getRealMilliseconds(); } U32 endHighResolutionTimer(U32 time[2]) { - return 1; + U32 ticks = Platform::getRealMilliseconds() - time[0]; + return ticks; } #endif