summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update space parameters in 2D and 3DPouleyKetchoupp2021-12-0322-84/+93
| | | | | | | | | | | Clarified space parameters for contacts and added missing ones. List of changes: -Add contact bias to space parameters -Add solver iterations to space parameters, instead of a specific physics server function -Renamed BODY_MAX_ALLOWED_PENETRATION to CONTACT_MAX_ALLOWED_PENETRATION to make it consistent with other contact parameters
* Improve RigidDynamicBody contacts in 2D and 3DPouleyKetchoupp2021-12-037-116/+157
| | | | | | | | | | | | | | | | | | | | Changed the algorithm for solving contacts to keep previous contacts as long as they are under the max separation threshold to keep contact impulses more consistent and contacts more stable. Also made 2D consistent with 3D and changed some default parameters: -Contact bias is now 0.8 instead of 0.3 to avoid springy contacts -Solver iterations are 16 instead of 8 by default for better stability Performance considerations: Tested with stress tests that include lots of contacts from overlapping bodies. 3D: There's no measurable difference in performance. 2D: Performance is a bit lower (close to 10% slower in extreme cases) The benefit for 2D physics to be much more stable outweighs the slight decrease in performance, and this could be alleviated by changing the algorithm to use jacobians for contact solving to help with cache efficiency and memory allocations.
* Merge pull request #55350 from Ev1lbl0w/fix_default_value_inspectorRémi Verschelde2021-11-261-1/+1
|\
| * Fix wrong comparison with default valuesRicardo Subtil2021-11-261-1/+1
|/
* Merge pull request #55347 from Faless/js/4.x_scons_emcc_abspathRémi Verschelde2021-11-261-3/+3
|\
| * [HTML5] Use absolute path for JS lib/pre/externs.Fabio Alessandrelli2021-11-261-3/+3
| | | | | | | | | | | | | | | | Ensure better compatibility when emcc which may run some tools from different paths (e.g. closure compiler). This fixes externs include issues with modern emcc using the closure compiler.
* | Merge pull request #55344 from Chaosus/repair_error_funcYuri Roubinsky2021-11-266-7/+7
|\ \ | |/ |/|
| * Fix console colors on WindowsYuri Roubinsky2021-11-266-7/+7
| |
* | Merge pull request #55342 from Faless/js/4.x_input_fix_focus_iframeRémi Verschelde2021-11-261-2/+6
|\ \ | |/ |/|
| * [HTML5] Fix focus (again) in Firefox's iframes.Fabio Alessandrelli2021-11-261-2/+6
|/ | | | | | | | This actually makes sense(?), when running inside an iframe the active element might be our canvas, while the iframe itself is not active in the parent window. Since we consume the event, the iframe does not get focused in Firefox (but does in Chromium-based browsers), so we must always call focus to handle such occasions.
* Merge pull request #55311 from Chaosus/fix_uniform_arrayRémi Verschelde2021-11-262-2/+14
|\ | | | | Fix uniform array alignment to fix a bug
| * Fix uniform array alignment to fix a bugYuri Roubinsky2021-11-252-2/+14
| |
* | Merge pull request #54345 from floppyhammer/fix-circular-texture-progressRémi Verschelde2021-11-261-9/+8
|\ \ | | | | | | Fix nine patch of circular TextureProgressBar
| * | Fix nine patch of circular TextureProgressBarfloppyhammer2021-11-011-9/+8
| | |
* | | Merge pull request #55316 from Chaosus/win32_restore_console_windowRémi Verschelde2021-11-261-2/+12
|\ \ \
| * | | Restore console window output for editor app on WindowsYuri Roubinsky2021-11-251-2/+12
| | | |
* | | | Merge pull request #55325 from Calinou/fsr-use-warn-printRémi Verschelde2021-11-261-3/+3
|\ \ \ \
| * | | | Use `WARN_PRINT_ONCE()` for FSR-related warning messagesHugo Locurcio2021-11-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `print_error()` should generally not be used directly. Also, falling back is best done by printing a warning message instead of an error message.
* | | | | Merge pull request #55313 from nekomatata/bounce-energy-stabilityRémi Verschelde2021-11-256-20/+24
|\ \ \ \ \
| * | | | | Fix RigidDynamicBody gaining momentum with bouncePouleyKetchoupp2021-11-256-20/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bounce calculation now uses the previous frame's velocity, so it's consistent with the actual motion of the bodies involved and not the yet-to-be-applied forces. When bounce is 1, using the current velocity was causing the new forces (including gravity) to be taken into account, which lead to the bounce velocity to be higher than the falling velocity at the moment of impact, adding more and more energy over time.
* | | | | | Merge pull request #55310 from Ev1lbl0w/fix_headless_window_errorsRémi Verschelde2021-11-251-3/+13
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Added more empty definitions for headless display serverRicardo Subtil2021-11-251-3/+13
| | |_|_|/ | |/| | |
* | | | | Merge pull request #55227 from ator-dev/fix-code-foldingRémi Verschelde2021-11-252-26/+77
|\ \ \ \ \
| * | | | | Fix code folding when end of block is unindented delimiterator-dev2021-11-242-26/+77
| | | | | |
* | | | | | Merge pull request #55319 from Calinou/cluster-builder-remove-debug-codeRémi Verschelde2021-11-251-8/+0
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | Remove disabled debug code in ClusterBuilderRDHugo Locurcio2021-11-251-8/+0
|/ / / / /
* | | | | Merge pull request #52387 from Calinou/node-rename-path-changed-notificationMax Hilbrunner2021-11-253-6/+6
|\ \ \ \ \ | |_|_|/ / |/| | | | Rename Node's `NOTIFICATION_PATH_CHANGED` to `NOTIFICATION_PATH_RENAMED`
| * | | | Rename Node's `NOTIFICATION_PATH_CHANGED` to `NOTIFICATION_PATH_RENAMED`Hugo Locurcio2021-09-043-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | The new name is less misleading, as the notification is only emitted when the node name (or one of its parents' names) is changed.
* | | | | Merge pull request #55309 from aaronfranke/ps-exist-errorsRémi Verschelde2021-11-251-3/+3
|\ \ \ \ \ | |_|_|/ / |/| | | |
| * | | | Don't show errors when getting nonexistent settingsAaron Franke2021-11-251-3/+3
|/ / / /
* | | | Merge pull request #55308 from Chaosus/revert_uniform_order_fixRémi Verschelde2021-11-251-14/+4
|\ \ \ \
| * | | | Revert "Pushes array of uniforms to first place in the buffer"Yuri Roubinsky2021-11-251-14/+4
|/ / / /
* | | | Merge pull request #55306 from Chaosus/enchance_global_docRémi Verschelde2021-11-252-4/+6
|\ \ \ \
| * | | | Enchance descriptions of @GlobalScope/@GDScriptYuri Roubinsky2021-11-252-4/+6
| | | | |
* | | | | Merge pull request #55307 from bruvzg/mvk_sdfgi_fixRémi Verschelde2021-11-251-0/+4
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | [macOS / iOS] Use non atomic operation to store facing bits on MoltenVK.bruvzg2021-11-251-0/+4
|/ / / /
* | | | Merge pull request #55303 from aaronfranke/ps-wait-modifiedRémi Verschelde2021-11-254-51/+39
|\ \ \ \
| * | | | Move logic for saving project features to ProjectSettings save_customAaron Franke2021-11-254-51/+39
|/ / / /
* | | | Merge pull request #55291 from theoway/fix_vs_editor_variale&signal_renameRémi Verschelde2021-11-251-0/+29
|\ \ \ \ | | | | | | | | | | Fixes variable/signal nodes not renaming in visualscript editor
| * | | | Fixes variable/singal nodes not renaming in visualscript editorUmang Kalra2021-11-241-0/+29
| | | | |
* | | | | Merge pull request #51679 from Je06jm/fsrRémi Verschelde2021-11-2439-150/+4807
|\ \ \ \ \ | | | | | | | | | | | | AMD FidelityFX Super Resolution
| * | | | | Implemented AMD's FSR as a computer shader for upscaling 3D scenesJe06jm2021-11-2339-150/+4807
| | | | | |
* | | | | | Merge pull request #31171 from aaronfranke/feature-systemRémi Verschelde2021-11-244-52/+252
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Project feature warning systemAaron Franke2021-11-244-52/+252
|/ / / / /
* | | | | Merge pull request #55281 from bruvzg/mvk_fog_volumesRémi Verschelde2021-11-244-0/+113
|\ \ \ \ \
| * | | | | [macOS / iOS] Use storage buffers instead of unsupported images for the ↵bruvzg2021-11-244-0/+113
| |/ / / / | | | | | | | | | | | | | | | volumetric fog on MoltenVK.
* | | | | Merge pull request #52456 from kleonc/image-fill-rectRémi Verschelde2021-11-244-30/+111
|\ \ \ \ \
| * | | | | Image Use memcpy() in fill(), fill_rect(), _put_pixelb(), _get_pixelb()kleonc2021-11-232-30/+31
| | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Lightning_A <aaronjrecord@gmail.com>
| * | | | | Add Image::fill_rect methodkleonc2021-11-234-10/+90
| | | | | |
* | | | | | Merge pull request #55286 from KoBeWi/scene_prophetRémi Verschelde2021-11-241-1/+5
|\ \ \ \ \ \