Skip to content

Commit b2d8fad

Browse files
committed
Add isnormal (...) back to framepacing statistics, lol
1 parent 56ad420 commit b2d8fad

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

CHANGELOG.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
26.4.18.3
1+
26.4.18.4
2+
=========
3+
+ Various optimizations to per-frame work when SK's overlay is not drawing.
4+
+ Gave Unity Game Thread Pacing a thread-local timer to ensure it does not
5+
use the wrong timer if the primary thread changes.
6+
7+
26.4.18.3
28
=========
39
+ Block gamepad input to games while the Windows/Xbox Game Bar is active,
410
since it cannot do so itself.

include/SpecialK/DLL_VERSION.H

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#define SK_YEAR 26
44
#define SK_MONTH 4
55
#define SK_DATE 18
6-
#define SK_REV_N 3
7-
#define SK_REV 3
6+
#define SK_REV_N 4
7+
#define SK_REV 4
88

99
#ifndef _A2
1010
#define _A2(a) #a

src/framerate.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4510,7 +4510,7 @@ SK::Framerate::TickEx ( bool /*wait*/,
45104510

45114511

45124512
// Prevent inserting infinity into the dataset
4513-
//if ( std::isnormal (dt) )
4513+
if ( std::isnormal (dt) )
45144514
{
45154515
if (snapshots->frame_history.addSample (1000.0 * dt, now))
45164516
{
@@ -4605,7 +4605,7 @@ SK::Framerate::TickEx ( bool /*wait*/,
46054605
} break;
46064606
}
46074607

4608-
if (/*std::isnormal(sample) &&*/ now.QuadPart > 0)
4608+
if (now.QuadPart > 0 && std::isnormal (sample))
46094609
{
46104610
container->addSample (
46114611
sample, now
@@ -4874,7 +4874,7 @@ SK::Framerate::Stats::sortAndCacheFrametimeHistory (void) //noexcept
48744874
{
48754875
if (datum.when.QuadPart >= 0)
48764876
{
4877-
//if (isnormal (datum.val))
4877+
if (isnormal (datum.val))
48784878
{
48794879
kWriteBuffer.second.emplace_back (datum.val);
48804880
}

0 commit comments

Comments
 (0)