commit x64 compilation from lulu cause the other branch dont seems to compile properly at home

This commit is contained in:
2026-07-17 16:08:20 +02:00
parent c0f3eeb00d
commit 0efa4ee6f7
625 changed files with 117283 additions and 4426 deletions

View File

@ -0,0 +1,53 @@
/* -----------------------------------------------------------------------------
GSFramework
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */
#include "timing/loop_benchmark.h"
#include "platform.h"
#include "log/log.h"
using namespace GS;
//------------------------------------------------------------------------------
void LoopBenchmark::MarkLoop()
{
++loop_count;
Time c_time = Platform::Get().GetTime();
t_time += c_time - r_time;
r_time = c_time;
float t_ms = t_time.toMs();
if (t_ms > 1000.f)
{
ms = t_ms / loop_count;
loop_count = 0;
t_time.setSec(0);
}
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
float LoopBenchmark::GetMs() const
{ return ms; }
float LoopBenchmark::GetFps() const
{ return ms ? 1000.f / ms : 0.f; }
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
void LoopBenchmark::Reset()
{
ms = 0.f;
loop_count = 0;
r_time = Platform::Get().GetTime();
t_time.setSec(0);
}
//------------------------------------------------------------------------------