summaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* Add `is_finite` method for checking built-in typesHaoyu Qiu2022-10-0824-6/+74
|
* Use float literals for float calculations in ColorAaron Franke2022-10-0716-70/+66
|
* Fix more MSVC C4702 (unreachable code) warningsRémi Verschelde2022-10-071-2/+0
|
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-0722-212/+192
| | | | change warnings=all to use /W4.
* Merge pull request #66962 from aaronfranke/core-struct-includesRémi Verschelde2022-10-0611-14/+21
|\ | | | | | | Enhancements to includes in core data structures
| * Enhancements to includes in core data structuresAaron Franke2022-10-0511-14/+21
| |
* | Merge pull request #64815 from RandomShaper/default_cpu_countRémi Verschelde2022-10-061-1/+2
|\ \ | | | | | | | | | Improve default `OS`'s CPU count getter
| * | Keep a single, portable implementation of `OS::get_processor_count()`Pedro J. Estébanez2022-10-051-1/+2
| | |
* | | free NativeExtensionMethodBinds on unregisterWaridley2022-10-051-1/+5
| |/ |/|
* | Merge pull request #64819 from RandomShaper/enhance_thread_funcsRémi Verschelde2022-10-052-32/+27
|\ \ | | | | | | | | | Enhance portability of threading
| * | Enhance portability of threadingPedro J. Estébanez2022-10-042-32/+27
| | |
* | | Merge pull request #66839 from aaronfranke/editor-prop-hide-sliderRémi Verschelde2022-10-051-1/+1
|\ \ \ | | | | | | | | | | | | Fix `hide_slider` vs `no_slider` inconsistency in editor property code
| * | | Fix hide_slider vs no_slider inconsistency in editor property codeAaron Franke2022-10-031-1/+1
| |/ /
* | | Merge pull request #66886 from akien-mga/error-print-cleanupRémi Verschelde2022-10-052-49/+20
|\ \ \ | | | | | | | | | | | | Logger: Don't print error twice on `ERR_PRINT`
| * | | Logger: Don't print error twice on `ERR_PRINT`Rémi Verschelde2022-10-042-49/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix broken `ERR_PRINT_ED` macro and simplify comments. For the record these macros aren't used yet, they're intended to be used where needed to surface messages in the toaster when useful to end users, but we haven't done that codebase review yet.
* | | | Merge pull request #66898 from aaronfranke/proj-mat-columnsRémi Verschelde2022-10-0510-206/+208
|\ \ \ \ | | | | | | | | | | | | | | | Rename Projection `matrix` to `columns`
| * | | | Rename Projection `matrix` to `columns`Aaron Franke2022-10-0410-206/+208
| |/ / /
* / / / Improve dictionary printing to avoid confusion with arraysHugo Locurcio2022-10-041-6/+8
|/ / / | | | | | | | | | | | | | | | - Add leading and trailing spaces within dictionaries, as the `{}` characters are hard to distinguish from `[]` on some fonts. This is especially helpful with empty arrays and dictionaries.
* | | Merge pull request #66274 from Calinou/engine-rename-max-fpsRémi Verschelde2022-10-045-19/+19
|\ \ \ | | | | | | | | | | | | Rename `Engine.target_fps` and associated project setting to `max_fps`
| * | | Rename `Engine.target_fps` and associated project setting to `max_fps`Hugo Locurcio2022-10-035-19/+19
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | This makes the setting easier to find, as research has found there are numerous use cases to limiting FPS. This also improves documentation related to the Engine property and project setting. The project setting also works in projects exported in release mode, so its location in the `debug/` section was misleading.
* | | Merge pull request #66804 from akien-mga/core-remove-NO_SAFE_CASTRémi Verschelde2022-10-042-31/+2
|\ \ \ | |/ / |/| | | | | Remove unsupported `NO_SAFE_CAST`/`-fno-rtti` from Android build
| * | Remove unsupported `NO_SAFE_CAST`/`-fno-rtti` from Android buildRémi Verschelde2022-10-032-31/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | Android was the last platform to still attempt to disable RTTI (for binary size), but both the Android editor and now the ICU library used by templates need RTTI. There could still be the possibility to support this for non-ICU template builds (i.e. without the TextServerAdvanced module), but since this isn't one of the build configurations we test regularly it's pretty risky to keep this option only for that specific use case. And our code is already littered with `dynamic_cast`s which weren't guarded with `!defined(NO_SAFE_CAST)`.
* | Merge pull request #66803 from akien-mga/core-remove-NO_THREADSRémi Verschelde2022-10-0316-431/+8
|\ \ | | | | | | | | | Remove `NO_THREADS` fallback code, Godot 4 requires thread support
| * | Remove NO_THREADS fallback code, Godot 4 requires thread supportRémi Verschelde2022-10-0316-431/+8
| |/ | | | | | | | | This also removes `OS::can_use_threads` from the public API since it's always true.
* | Merge pull request #65751 from Faless/os/4.x_expose_read_from_stdinRémi Verschelde2022-10-032-0/+6
|\ \
| * | [OS] Expose get_stdin_string to Scripting.Fabio Alessandrelli2022-09-132-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Exposed as read_string_from_stdin so it's clear it's not retrieving a property. The method is kept with the block parameter, but a note is added to the docs specifying that is not implemented on any platform (should we just remove it?).
* | | Merge pull request #66814 from Faless/web/4.x_ps3_gamepad_ff_linuxFabio Alessandrelli2022-10-031-0/+1
|\ \ \ | |_|/ |/| | [Web] Add PS3 gamepad mapping for FF+Linux.
| * | [Web] Add PS3 gamepad mapping for FF+Linux.Fabio Alessandrelli2022-10-031-0/+1
| | |
* | | Merge pull request #66655 from MisterMX/feat/astargrid2d-vector2iRémi Verschelde2022-10-032-13/+13
|\ \ \ | | | | | | | | | | | | refactor(AStarGrid2D): Return `Vector2i` in `get_id_path`
| * | | refactor(AStarGrid2D): Return Vector2i in get_id_pathMisterMX2022-09-302-13/+13
| | | | | | | | | | | | | | | | Signed-off-by: MisterMX <mbxd12@web.de>
* | | | Merge pull request #66133 from aaronfranke/set-allRémi Verschelde2022-10-0310-68/+6
|\ \ \ \ | | | | | | | | | | | | | | | Delete `set_all`, `set_axis`, and `get_axis` methods from Vector2/3/3i/4/4i
| * | | | Remove set_all methods from Vector2/3/4Aaron Franke2022-09-194-16/+6
| | | | |
| * | | | Remove set_axis and get_axis methods from Vector2/2i/3/3i/4/4iAaron Franke2022-09-198-52/+0
| | | | |
* | | | | Merge pull request #64833 from MarcusElg/naninfprintingRémi Verschelde2022-10-031-4/+12
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | Improve string formatting (%f and %v) for inf and nan
| * | | | Improve string formatting for %f and %v for inf and nanMarcus Elg2022-08-251-4/+12
| | | | |
* | | | | Merge pull request #64784 from yedpodtrzitko/yed/ci-add-mypyRémi Verschelde2022-09-302-4/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | ci: add Python static analysis check via mypy
| * | | | | ci: add Python static analysis check via mypyJiri Suchan2022-09-302-4/+4
| | | | | |
* | | | | | Fix typos with codespellRémi Verschelde2022-09-301-1/+1
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using codespell 2.3-dev from current git. And fix typo in `methods.py` for `vsproj=yes` option (still won't work though).
* | | | | Merge pull request #66242 from akien-mga/scons-unify-tools-targetRémi Verschelde2022-09-301-1/+1
|\ \ \ \ \
| * | | | | SCons: Unify tools/target build type configurationRémi Verschelde2022-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements https://github.com/godotengine/godot-proposals/issues/3371. New `target` presets ==================== The `tools` option is removed and `target` changes to use three new presets, which match the builds users are familiar with. These targets control the default optimization level and enable editor-specific and debugging code: - `editor`: Replaces `tools=yes target=release_debug`. * Defines: `TOOLS_ENABLED`, `DEBUG_ENABLED`, `-O2`/`/O2` - `template_debug`: Replaces `tools=no target=release_debug`. * Defines: `DEBUG_ENABLED`, `-O2`/`/O2` - `template_release`: Replaces `tools=no target=release`. * Defines: `-O3`/`/O2` New `dev_build` option ====================== The previous `target=debug` is now replaced by a separate `dev_build=yes` option, which can be used in combination with either of the three targets, and changes the following: - `dev_build`: Defines `DEV_ENABLED`, disables optimization (`-O0`/`/0d`), enables generating debug symbols, does not define `NDEBUG` so `assert()` works in thirdparty libraries, adds a `.dev` suffix to the binary name. Note: Unlike previously, `dev_build` defaults to off so that users who compile Godot from source get an optimized and small build by default. Engine contributors should now set `dev_build=yes` in their build scripts or IDE configuration manually. Changed binary names ==================== The name of generated binaries and object files are changed too, to follow this format: `godot.<platform>.<target>[.dev][.double].<arch>[.<extra_suffix>][.<ext>]` For example: - `godot.linuxbsd.editor.dev.arm64` - `godot.windows.template_release.double.x86_64.mono.exe` Be sure to update your links/scripts/IDE config accordingly. More flexible `optimize` and `debug_symbols` options ==================================================== The optimization level and whether to generate debug symbols can be further specified with the `optimize` and `debug_symbols` options. So the default values listed above for the various `target` and `dev_build` combinations are indicative and can be replaced when compiling, e.g.: `scons p=linuxbsd target=template_debug dev_build=yes optimize=debug` will make a "debug" export template with dev-only code enabled, `-Og` optimization level for GCC/Clang, and debug symbols. Perfect for debugging complex crashes at runtime in an exported project.
* | | | | | Fix crash when executing `ResourceUID.set_id`Haoyu Qiu2022-09-301-1/+6
| | | | | |
* | | | | | Merge pull request #66583 from bruvzg/constexprRémi Verschelde2022-09-298-33/+33
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Use `constexpr` in the conditions with template parameters and `sizeof`s to suppress C4127 warnings.
| * | | | | | Use `constexpr` in the conditions with template parameters and `sizeof`s to ↵bruvzg2022-09-298-33/+33
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | suppress C4127 warnings.
* | | | | | Merge pull request #66552 from bruvzg/64_bitfieldsRémi Verschelde2022-09-291-3/+3
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | Change BitField to use 64-bit int.
| * | | | | Change BitField to use 64-bit int.bruvzg2022-09-281-3/+3
| | | | | |
* | | | | | Merge pull request #66103 from Zylann/bind_property_usage_read_onlyRémi Verschelde2022-09-291-0/+1
|\ \ \ \ \ \
| * | | | | | Expose `PROPERTY_USAGE_READ_ONLY`Marc Gilleron2022-09-281-0/+1
| | | | | | |
* | | | | | | Project supported features: Ignore old 'Vulkan Clustered/Forward' namesRémi Verschelde2022-09-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This eases transition from beta 1 to beta 2 so that users don't get a warning about a missing feature. The names were just changed. The old feature names are removed from project.godot when opening such a project.
* | | | | | | Merge pull request #66548 from akien-mga/msvc-warnings-c4701-c4703Rémi Verschelde2022-09-281-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Fix MSVC warnings C4701 and C4703: Potentially uninitialized variable used
| * | | | | | | Fix MSVC warnings C4701 and C4703: Potentially uninitialized variable usedRémi Verschelde2022-09-281-1/+1
| | |/ / / / / | |/| | | | |