Commit 7e016ca9 authored by fgp76's avatar fgp76

Modification du calcul de FPS moyen de l'interpolateur

parent 5331c2e6
......@@ -655,12 +655,13 @@ namespace ffs2play
//Si on a suffisement de donnée (new + old) on utilise l'interpolation
if (m_Spawned >= 7)
{
if (m_old_fps != 0)
{
FPS = (FPS + (float)m_old_fps) / 2;
}
m_old_fps = FPS;
double Temps = 1000 / FPS;
float FPSAvg = FPS;
if (m_old_fps != 0)
{
FPSAvg = (FPS + (float)m_old_fps) / 2;
}
m_old_fps = FPS;
double Temps = 1000 / FPSAvg;
double CoefInterpol = Temps / (m_FuturData.TimeStamp - m_ActualPos.TimeStamp).TotalMilliseconds;
m_LastRender = Time;
m_AIData.Altitude += m_DeltaAltitude * CoefInterpol;
......
......@@ -33,6 +33,6 @@ using System.Resources;
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
// en utilisant '*', comme indiqué ci-dessous :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.8.0")]
[assembly: AssemblyFileVersion("1.0.8.0")]
[assembly: AssemblyVersion("1.0.9.0")]
[assembly: AssemblyFileVersion("1.0.9.0")]
[assembly: NeutralResourcesLanguageAttribute("fr")]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment