Godot Engine – Multi-platform 2D and 3D game engine
Go to file
Pedro J. Estébanez df23858488 ResourceLoader: Fix edge cases in the management of user tokens
1. Make handling of user tokens atomic:
   Loads started with the external-facing API used to perform a two-step setup of the user token. Between both, the mutex was unlocked without its reference count having been increased. A non-user-initiated load could therefore destroy the load task when it unreferenced the token.
   Those stages now happen atomically so in the one hand, the described race condition can't happen so the load task life insurance doesn't have a gap anymore and, on the other hand, the ugliness that the call to load could return `ERR_BUSY` if happening while other thread was between both steps is gone.
   The code has been refactored so the user token concerns are still outside the inner load start function, which is agnostic to that for a cleaner implementation.
2. Clear ambiguity between load operations running on `WorkerThreadPool`:
   The two cases are: single-loaded thread directly started by a user pool task and a load started by the system as part of a multi-threaded load.
   Since ensuring all the code dealing with this distinction would make it very complex, and error-prone, a different measure is applied instead: just take one of the cases out of the dicotomy. We now ensure every load happening on a pool thread has been initiated by the system.
   The way of achieving that is that a single-threaded user-started load initiated from a pool thread, is run as another task.
2024-08-21 12:22:52 +02:00
.github Add Metal support for macOS (arm64) and iOS 2024-08-20 12:11:06 +02:00
core ResourceLoader: Fix edge cases in the management of user tokens 2024-08-21 12:22:52 +02:00
doc Merge pull request #91535 from BlueCube3310/betsy-bc6h 2024-08-21 06:38:03 +02:00
drivers Add Metal support for macOS (arm64) and iOS 2024-08-20 12:11:06 +02:00
editor Merge pull request #91535 from BlueCube3310/betsy-bc6h 2024-08-21 06:38:03 +02:00
main Add Metal support for macOS (arm64) and iOS 2024-08-20 12:11:06 +02:00
misc macOS/iOS: Fix various warnings when targeting newer SDKs 2024-08-20 11:55:21 +02:00
modules Merge pull request #95828 from clayjohn/Lightmapper-AA-direct-light 2024-08-21 07:23:05 +02:00
platform Add Metal support for macOS (arm64) and iOS 2024-08-20 12:11:06 +02:00
scene Merge pull request #95643 from Flynsarmy/get_bone_attach_skele 2024-08-20 11:04:04 +02:00
servers Merge pull request #91535 from BlueCube3310/betsy-bc6h 2024-08-21 06:38:03 +02:00
tests Merge pull request #89554 from smnast/backspace-unfold 2024-08-19 16:04:34 +02:00
thirdparty Merge pull request #91535 from BlueCube3310/betsy-bc6h 2024-08-21 06:38:03 +02:00
.clang-format Style: Workaround clang-format 14 bug with `Inline` oneliner functions 2022-08-03 12:20:23 +02:00
.clang-tidy CI: Add pre-commit hook for `clang-tidy` 2024-06-17 11:27:18 -05:00
.editorconfig CI: Add `svgo` pre-commit hook 2024-06-23 08:14:54 -05:00
.git-blame-ignore-revs Template format commit to .git-blame-ignore-revs 2024-03-08 08:33:06 -06:00
.gitattributes Dotnet: Fix attributes for `sln`/`csproj` files 2024-05-03 12:21:51 -05:00
.gitignore Ignore Kate's build file 2024-06-05 12:54:33 -03:00
.mailmap Update AUTHORS and DONORS list 2024-08-14 12:55:09 +02:00
.pre-commit-config.yaml CI: Add `svgo` pre-commit hook 2024-06-23 08:14:54 -05:00
AUTHORS.md Update AUTHORS and DONORS list 2024-08-14 12:55:09 +02:00
CHANGELOG.md Add changelog for Godot 4.3 2024-08-15 00:57:57 +02:00
CONTRIBUTING.md Update godot documentation contribution link 2024-07-20 20:51:11 -06:00
COPYRIGHT.txt Add Metal support for macOS (arm64) and iOS 2024-08-20 12:11:06 +02:00
DONORS.md Update AUTHORS and DONORS list 2024-08-14 12:55:09 +02:00
LICENSE.txt One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
LOGO_LICENSE.txt Cleanup various repository documentation files 2023-10-10 13:58:13 +02:00
README.md Cleanup various repository documentation files 2023-10-10 13:58:13 +02:00
SConstruct Add Metal support for macOS (arm64) and iOS 2024-08-20 12:11:06 +02:00
gles3_builders.py Update pre-commit hooks configuration to use `ruff` instead of `black` 2024-05-21 18:02:29 -05:00
glsl_builders.py Update pre-commit hooks configuration to use `ruff` instead of `black` 2024-05-21 18:02:29 -05:00
godot.manifest Windows: Implement `DisplayServer::dialog_show` and `DisplayServer::dialog_input_text` 2024-03-04 12:53:22 -08:00
icon.png Remove two very slightly displaced duplicate vertices on Gobot's face 2020-12-11 07:05:54 +01:00
icon.svg Style: Optimize `.svg` files with `svgo` 2024-06-23 08:15:19 -05:00
icon_outlined.png Add an outlined version of logo.png and icon.png and put it in README.md 2020-12-14 06:42:51 +01:00
icon_outlined.svg Style: Optimize `.svg` files with `svgo` 2024-06-23 08:15:19 -05:00
logo.png Remove two very slightly displaced duplicate vertices on Gobot's face 2020-12-11 07:05:54 +01:00
logo.svg Style: Optimize `.svg` files with `svgo` 2024-06-23 08:15:19 -05:00
logo_outlined.png Convert the logo's text outlines into paths 2023-04-07 17:51:56 +02:00
logo_outlined.svg Style: Optimize `.svg` files with `svgo` 2024-06-23 08:15:19 -05:00
methods.py Merge pull request #93753 from Repiteo/scons/visual-studio-fixes 2024-07-22 17:30:25 +02:00
platform_methods.py Update pre-commit hooks configuration to use `ruff` instead of `black` 2024-05-21 18:02:29 -05:00
pyproject.toml CI: Migrate codespell logic to `pyproject.toml` 2024-06-03 10:19:58 -05:00
scu_builders.py Update pre-commit hooks configuration to use `ruff` instead of `black` 2024-05-21 18:02:29 -05:00
version.py Bump version to 4.4-dev 2024-08-15 11:39:34 +02:00

README.md

Godot Engine

Godot Engine logo

2D and 3D cross-platform game engine

Godot Engine is a feature-packed, cross-platform game engine to create 2D and 3D games from a unified interface. It provides a comprehensive set of common tools, so that users can focus on making games without having to reinvent the wheel. Games can be exported with one click to a number of platforms, including the major desktop platforms (Linux, macOS, Windows), mobile platforms (Android, iOS), as well as Web-based platforms and consoles.

Free, open source and community-driven

Godot is completely free and open source under the very permissive MIT license. No strings attached, no royalties, nothing. The users' games are theirs, down to the last line of engine code. Godot's development is fully independent and community-driven, empowering users to help shape their engine to match their expectations. It is supported by the Godot Foundation not-for-profit.

Before being open sourced in February 2014, Godot had been developed by Juan Linietsky and Ariel Manzur (both still maintaining the project) for several years as an in-house engine, used to publish several work-for-hire titles.

Screenshot of a 3D scene in the Godot Engine editor

Getting the engine

Binary downloads

Official binaries for the Godot editor and the export templates can be found on the Godot website.

Compiling from source

See the official docs for compilation instructions for every supported platform.

Community and contributing

Godot is not only an engine but an ever-growing community of users and engine developers. The main community channels are listed on the homepage.

The best way to get in touch with the core engine developers is to join the Godot Contributors Chat.

To get started contributing to the project, see the contributing guide. This document also includes guidelines for reporting bugs.

Documentation and demos

The official documentation is hosted on Read the Docs. It is maintained by the Godot community in its own GitHub repository.

The class reference is also accessible from the Godot editor.

We also maintain official demos in their own GitHub repository as well as a list of awesome Godot community resources.

There are also a number of other learning resources provided by the community, such as text and video tutorials, demos, etc. Consult the community channels for more information.

Code Triagers Badge Translate on Weblate TODOs