Engine

Inherits: Object

Category: Core

Brief Description

Member Functions

int get_frames_drawn ( )
float get_frames_per_second ( ) const
int get_iterations_per_second ( ) const
MainLoop get_main_loop ( ) const
float get_target_fps ( ) const
float get_time_scale ( )
Dictionary get_version_info ( ) const
bool is_editor_hint ( ) const
bool is_in_fixed_frame ( ) const
void set_editor_hint ( bool enabled )
void set_iterations_per_second ( int iterations_per_second )
void set_target_fps ( int target_fps )
void set_time_scale ( float time_scale )

Member Function Description

  • int get_frames_drawn ( )

Return the total amount of frames drawn.

  • float get_frames_per_second ( ) const

Returns the frames per second of the running game.

  • int get_iterations_per_second ( ) const

Return the amount of fixed iterations per second (for fixed process and physics).

Return the main loop object (see MainLoop and SceneTree).

  • float get_target_fps ( ) const
  • float get_time_scale ( )

Returns the current engine version information in a Dictionary.

“major” - Holds the major version number as a String

“minor” - Holds the minor version number as a String

“patch” - Holds the patch version number as a String

“status” - Holds the status (e.g. “beta”, “rc1”, “rc2”, … “stable”) as a String

“revision” - Holds the revision (e.g. “custom-build”) as a String

“string” - major + minor + patch + status + revision in a single String

  • bool is_editor_hint ( ) const
  • bool is_in_fixed_frame ( ) const
  • void set_editor_hint ( bool enabled )
  • void set_iterations_per_second ( int iterations_per_second )

Set the amount of fixed iterations per second (for fixed process and physics).

  • void set_target_fps ( int target_fps )
  • void set_time_scale ( float time_scale )