forked from LeenkxTeam/LNXSDK
moisesjpelaez - Framerate and delta fixes
This commit is contained in:
parent
a6f83e2d37
commit
b752d70109
@ -8,7 +8,7 @@ class GetFPSNode extends LogicNode {
|
||||
|
||||
override function get(from: Int): Dynamic {
|
||||
if (from == 0) {
|
||||
var fps = Math.round(1 / iron.system.Time.realDelta);
|
||||
var fps = Math.round(1 / iron.system.Time.renderDelta);
|
||||
if ((fps == Math.POSITIVE_INFINITY) || (fps == Math.NEGATIVE_INFINITY) || (Math.isNaN(fps))) {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user