Merge pull request #77719 from hlutor/remove_get_vsync_warn_web

Override window_get_vsync_mode in DisplayServerWeb to prevent warning spam
This commit is contained in:
Fabio Alessandrelli 2023-06-01 15:50:12 +02:00 committed by GitHub
commit b96cc5eb3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -1080,6 +1080,10 @@ bool DisplayServerWeb::can_any_window_draw() const {
return true;
}
DisplayServer::VSyncMode DisplayServerWeb::window_get_vsync_mode(WindowID p_vsync_mode) const {
return DisplayServer::VSYNC_ENABLED;
}
void DisplayServerWeb::process_events() {
Input::get_singleton()->flush_buffered_events();
if (godot_js_input_gamepad_sample() == OK) {

View file

@ -216,6 +216,8 @@ public:
virtual bool can_any_window_draw() const override;
virtual DisplayServer::VSyncMode window_get_vsync_mode(WindowID p_vsync_mode) const override;
// events
virtual void process_events() override;