armory/blender/arm/logicnode/miscellaneous/LN_get_fps.py
E1e5en 658d2546d8 Add LN Get Frames Per Second
This is sometimes more convenient than enable the entire debug console.
2020-10-27 15:56:34 +03:00

13 lines
381 B
Python

from arm.logicnode.arm_nodes import *
class GetFPSNode(ArmLogicTreeNode):
"""Get the frames per second count."""
bl_idname = 'LNGetFPSNode'
bl_label = 'Get Frames Per Second'
arm_version = 1
def init(self, context):
super(GetFPSNode, self).init(context)
self.add_output('NodeSocketInt', 'Count')
add_node(GetFPSNode, category=PKG_AS_CATEGORY)