Commit graph

41367 commits

Author SHA1 Message Date
Michael Alexsander
21bf23d966 Enhancements and fixes for OptionButton and PopupMenu 2022-02-06 16:03:18 -03:00
Fabio Alessandrelli
948e66c3d6 [HTML5] Implement JavaScript PWA update callbacks.
Allows detecting when a new version of the progressive web app service
worker is waiting (i.e. an update is pending), along a function to force
the update and reload all clients.
2022-02-06 18:53:50 +01:00
Fabio Alessandrelli
3cc72ac03f [HTML5] Improve editor progressive web app behavior.
Ensures early claim for aggressive caching.
Adds a button to update when it detects a new version asking
confirmation due to the necessary reload.
2022-02-06 18:46:42 +01:00
Fabio Alessandrelli
cc4612277b [HTML5] PWA service worker prefers cached version.
Use an offline first approach, where we prefer the cached version over
the network one.
This forces games using PWA to always re-export the project and not just
the PCK, so that the service worker version gets updated correctly, and
the end-user cache is correctly cleared on update.
2022-02-06 18:46:22 +01:00
Yuri Roubinsky
db18faf660 Rename PORT_TYPE_VECTOR to PORT_TYPE_VECTOR_3D 2022-02-06 20:15:28 +03:00
Rémi Verschelde
95719930a8
Merge pull request from fire-forge/fix-image-drop-nodes 2022-02-06 18:11:12 +01:00
Fabio Alessandrelli
6583797305 [Debugger] Move servers-related behaviours to ServersDebugger.
Forcing draw during debug break is now handled by ServersDebugger, and
only happens when the proper message is sent from the EditorDebugger
("servers:draw").
In a similar way, briging the window in foreground is now also handled
by ServersDebugger upon receiving "servers:foreground" which is sent by
the EditorDebugger when resuming from a break ("continue").
2022-02-06 17:36:48 +01:00
Fabio Alessandrelli
87f4bbd668 [Debugger] Move most profilers to ServersDebugger.
Also splits bandwidth/rpc profiler (RPCProfiler is now in
SceneDebugger).
2022-02-06 17:36:48 +01:00
Fabio Alessandrelli
789e648f4d [Debugger] New extensible EngineProfiler class.
Uses GDExtension, replaces old Callable system for profilers, and is
also used internally.
2022-02-06 17:33:45 +01:00
Rémi Verschelde
79a4d782a5
Merge pull request from jmb462/missing-sname-optimization 2022-02-06 17:03:11 +01:00
Rémi Verschelde
e38df41de8
Merge pull request from reduz/fix-variant-vec-integer-float-mul-div 2022-02-06 16:40:59 +01:00
Rémi Verschelde
762a31169d
Merge pull request from jordigcs/x11-snap-refresh-rate 2022-02-06 16:40:48 +01:00
Rémi Verschelde
fb6cf1e3b7
Merge pull request from NeilKleistGao/master 2022-02-06 16:39:42 +01:00
jmb462
1ce81dc5f2 Add missing SNAME macro optimization in some function calls 2022-02-06 15:54:04 +01:00
Hugo Locurcio
7721e19ccc
Tweak default SDFGI settings for better quality
- Enable Read Sky Light to get proper outdoors lighting out of the box.
- Set bounce feedback to 0.5 by default to get a better quality result.
  - Higher values may cause infinite feedback with bright surfaces.
- Increase the number of frames to converge to improve quality
  at the cost of latency. Most scenes are fairly static after all.
- Use 75% Y scale by default as most scenes are not highly vertical.

- Reorder the Y scale enum to go from the lowest Y scale to the highest.
  Also rename the "Disabled" setting to "100%" for clarity.
2022-02-06 15:28:59 +01:00
Hugo Locurcio
b9cfc74f29
Decrease the default number of SDFGI cascades to 4
This improves rendering performance noticeably, especially when the
camera moves fast.

On a medium-sized test scene on a GTX 1080 in 2560×1440, going
from 6 to cascades saves 0.5 ms of frame time while looking visually
identical (as most of the scene fits within the 4 cascades).
2022-02-06 15:01:25 +01:00
reduz
8c7268664d
Fix integer vector mul/div operators and bindings.
* Vector2i and Vector3i mul/div by a float results in Vector2 and Vector3 respectively.
* Create specializations to allow proper bindings.

This fixes  and supersedes  and keeps the same rule of int <op> float returnig float, like with scalars.
2022-02-06 13:34:41 +01:00
jordi
635da44ef8 Snap refresh rate to hundreths place on X11 2022-02-06 13:24:57 +01:00
Hugo Locurcio
01c1667836
Recommend using GitHub attachments for minimal reproduction projects
Third-party file hosts can have their files expire or be removed
by the owner. In comparison, GitHub attachments are more resilient.

This also fixes the link to create a bug report.
2022-02-06 12:33:40 +01:00
NeilKleistGao
729c1f056b Edit font properties on multiple objects at once 2022-02-06 18:32:55 +08:00
Rémi Verschelde
fd0d2dcabf
Merge pull request from Chaosus/shader_fix-for_loop
Fix unknown identifier error in for loop
2022-02-06 11:18:20 +01:00
Yuri Roubinsky
a2484c3293 Fix unknown identifier error in for loop 2022-02-06 08:38:33 +03:00
FireForge
871b9fc352 Fix node types in image drag-and-drop and add node icons 2022-02-05 21:01:29 -06:00
kobewi
ab5b5e1577 Rework CanvasItem visibility propagation 2022-02-06 00:26:28 +01:00
clayjohn
60d8df3fee Optimize and fix backbuffer gaussian blur 2022-02-05 15:03:39 -08:00
Rémi Verschelde
9d1626b4d7
Merge pull request from godotengine/string-name-static-false-unclaimed 2022-02-05 20:26:34 +01:00
Rémi Verschelde
bd32dd4a48
Merge pull request from V-Sekai/override-import
Make add_importer and add_post_importer_plugin override existing importers.
2022-02-05 19:50:37 +01:00
Rémi Verschelde
5f42e0d0ab
Merge pull request from Faless/mp/4.x_interfaces
[Net] Move RPC, Node cache out of MultiplayerAPI.
2022-02-05 18:26:04 +01:00
Rémi Verschelde
eb4b4a317b
Merge pull request from Faless/net/4.x_ws_queue_hostres
[Net] Non-blocking WebSocket hostname resolution.
2022-02-05 18:23:11 +01:00
Rémi Verschelde
feb34dfb2e
Merge pull request from madmiraal/update-mouse-pointer-definitions
Update definitions of get_mouse_position methods
2022-02-05 16:09:52 +01:00
Rémi Verschelde
eac1883791
Merge pull request from lawnjelly/err_macros_flush
Add fflush to error macros
2022-02-05 16:08:41 +01:00
Rémi Verschelde
aecff478b7
Merge pull request from KoBeWi/incognito_layer
Add visibility to CanvasLayer
2022-02-05 16:05:53 +01:00
Rémi Verschelde
69d7d1ec52
Merge pull request from reduz/remove-get-rid-by-index
Remove RID_Owner.get_rid_by_index
2022-02-05 14:38:56 +01:00
Rémi Verschelde
dd9426d14b
Merge pull request from gerhean/Add-shortcut_cell-double-click-functionality
Add shortcut_cell double click functionality
2022-02-05 14:36:33 +01:00
kobewi
189dab2d76 Add visibility to CanvasLayer 2022-02-05 14:02:21 +01:00
lawnjelly
9963c4f0d3 Add fflush to error macros
CRASH_NOW macros would previously crash before outputting any error messages. This PR ensures calling fflush for stdout before terminating.
2022-02-05 12:31:54 +00:00
Ger Hean
8acc8838c4 Add shortcut_cell double click functionality 2022-02-05 19:06:54 +08:00
reduz
74adf0bf2e Remove RID_Owner.get_rid_by_index
* Implementing this function efficiently is not really possible.
* Replaced by an option to get all RIDs into a buffer for performance.
2022-02-05 11:59:34 +01:00
Stijn Hinlopen
31824420e4 Center when scrolling to tree item. 2022-02-05 10:59:33 +01:00
Rémi Verschelde
df1724470d
Merge pull request from fire/faster-cvtt
Faster CVTT by lowering default quality
2022-02-05 10:28:07 +01:00
Rémi Verschelde
2e44778cd2
Merge pull request from jmb462/fix-template-optionbutton
Fix OptionButton in create script dialog doesn't select the correct template
2022-02-05 10:18:21 +01:00
Rémi Verschelde
eb371dee01
Merge pull request from theoniko/theoniko-effects_rc.cpp
Fix copy paste bug in renderer_rd/effects_rd.cpp
2022-02-05 10:15:38 +01:00
Rémi Verschelde
2511d63215
Merge pull request from Chaosus/shader_for_fixes
Few more fixes to for loop in shaders
2022-02-05 10:15:16 +01:00
Rémi Verschelde
a0c87d4c11
Merge pull request from Haydoggo/expression-exp-fix
Fix Expression's parsing of positive exponent literals
2022-02-05 10:14:10 +01:00
Rémi Verschelde
9fd095011e
Merge pull request from Sauermann/fix-onready-docs
Add @ to onready annotated variables in docs
2022-02-05 10:11:13 +01:00
Rémi Verschelde
c5a832e087
Merge pull request from KoBeWi/shrunken_tb
Rework TextureButton stretch
2022-02-05 10:10:38 +01:00
Jean-Michel Bernard
f86ab4031a Fix template OptionButton in create script dialog doesn't select the correct template 2022-02-05 07:06:53 +01:00
Yuri Roubinsky
e01d08159c Few more fixes to for loop in shaders 2022-02-05 08:42:32 +03:00
theoniko
0c0ff5da50 Fix copy paste bug in renderer_rd/effects_rd.cpp 2022-02-05 06:41:30 +01:00
Hayden
1305ff92f7 Make parser treat all exponent literals as float 2022-02-05 16:34:26 +13:00