Limit FPS in JS by skipping iterations.

This commit is contained in:
Fabio Alessandrelli 2020-06-29 21:00:20 +02:00
parent 07d4513886
commit 1a637b07b1
2 changed files with 13 additions and 0 deletions

View file

@ -83,6 +83,9 @@ public:
String get_executable_path() const;
virtual Error shell_open(String p_uri);
virtual String get_name() const;
// Override default OS implementation which would block the main thread with delay_usec.
// Implemented in javascript_main.cpp loop callback instead.
virtual void add_frame_delay(bool p_can_draw) {}
virtual bool can_draw() const;
virtual String get_cache_path() const;