mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Limit FPS in JS by skipping iterations.
This commit is contained in:
parent
07d4513886
commit
1a637b07b1
2 changed files with 13 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue