Godot Engine – Multi-platform 2D and 3D game engine
Go to file
Daniel Rakos 6dd65c0d67 KinematicBody performance and quality improvements
With this change finally one can use compound collisions (like those created
by Gridmaps) without serious performance issues. The previous KinematicBody
code for Bullet was practically doing a whole bunch of unnecessary
calculations. Gridmaps with fairly large octant sizes (in my case 32) can get
up to 10000x speedup with this change (literally!). I expect the FPS demo to
get a fair speedup as well.

List of fixes and improvements:

- Fixed a general bug in move_and_slide that affects both GodotPhysics and
  Bullet, where ray shapes would be ignored unless the stop_on_slope parameter
  is disabled. Not sure where that came from, but looking at the 2D physics
  code it was obvious there's a difference.
- Enabled the dynamic AABB tree that Bullet uses to allow broadphase collision
  tests against individual shapes of compound shapes. This is crucial to get
  good performance with Gridmaps and in general improves the performance
  whenever a KinematicBody collides with compound collision shapes.
- Added code to the broadphase collision detection code used by the Bullet
  module for KinematicBodies to also do broadphase on the sub-shapes of
  compound collision shapes. This is possible thanks to the dynamic AABB
  tree that was previously disabled and it's the change that provides the
  biggest performance boost.
- Now broadphase test is only done once per KinematicBody in Bullet instead of
  once per each of its shapes which was completely unnecessary.
- Fixed the way how the ray separation results are populated in Bullet which
  was completely broken previously, overwriting previous results and similar
  non-sense.
- Fixed ray shapes for good now. Previously the margin set in the editor was
  not respected at all, and the KinematicBody code for ray separation was
  complete bogus, thus all previous attempts to fix it were mislead.
- Fixed an obvious bug also in GodotPhysics where an out-of-bounds index was
  used in the ray result array.

There are a whole set of other problems with the KinematicBody code of Bullet
which cost performance and may cause unexpected behavior, but those are not
addressed in this change (need to keep it "simple").

Not sure whether this fixes any outstanding Github issues but I wouldn't be
surprised.
2019-03-27 00:39:47 +01:00
core Revert accidental commits 2019-03-20 21:43:55 +01:00
doc Merge pull request #27109 from homer666/docs-particles2d-tutorial 2019-03-16 10:45:28 -07:00
drivers Revert accidental commits 2019-03-20 21:43:55 +01:00
editor Revert accidental commits 2019-03-20 21:43:55 +01:00
main Revert accidental commits 2019-03-20 21:43:55 +01:00
misc Bump version to 3.2-dev 2019-03-13 18:43:13 +01:00
modules KinematicBody performance and quality improvements 2019-03-27 00:39:47 +01:00
platform Revert accidental commits 2019-03-20 21:43:55 +01:00
scene KinematicBody performance and quality improvements 2019-03-27 00:39:47 +01:00
servers KinematicBody performance and quality improvements 2019-03-27 00:39:47 +01:00
thirdparty Disable WebSocket IPv6 support on OpenBSD. 2019-03-06 06:34:31 +01:00
.appveyor.yml AppVeyor: Force installing SCons 3.0.1 2019-01-01 23:31:08 +01:00
.clang-format clang-format: Set standard for ObjC++ 2019-02-09 12:20:24 +01:00
.editorconfig Update zstd to 1.3.8 2019-01-03 22:35:20 -02:00
.gitattributes Initial version of VS natvis file 2018-09-17 03:57:25 -04:00
.gitignore Ignore default ccls cache folder and compile commands jso 2019-03-14 18:35:23 +01:00
.mailmap Update AUTHORS and DONORS list 2019-03-05 11:21:52 +01:00
.travis.yml Travis: Use Ubuntu 16.04, use GCC 8 for Linux/GCC builds 2019-02-19 14:17:22 +01:00
AUTHORS.md Fix typo in @marxin's name 2019-03-05 12:15:51 +01:00
CHANGELOG.md Bump version to 3.1-stable \o/ 2019-03-13 17:16:00 +01:00
CODEOWNERS Drop RtAudio driver on Windows 2019-02-20 13:47:01 +01:00
CONTRIBUTING.md Add some links to CONTRIBUTING.md 2018-11-20 14:27:35 +01:00
COPYRIGHT.txt Updates to thirdparty README and COPYRIGHT 2019-03-04 14:51:16 +01:00
DONORS.md Update AUTHORS and DONORS list 2019-03-05 11:21:52 +01:00
ISSUE_TEMPLATE.md Issue template: Remove checkbox and reword some comments 2018-01-05 10:58:04 +01:00
LICENSE.txt Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
LOGO_LICENSE.md Improve documentation of thirdparty code snippets 2017-05-07 11:42:37 +02:00
README.md doc: Use HTTPS for docs.godotengine.org and point to latest branch 2018-11-05 08:46:27 +01:00
SConstruct Fix -Wsign-compare warnings. 2019-02-27 07:45:57 +01:00
compat.py fixed building using scons with python3 2018-05-28 18:41:16 +01:00
gles_builders.py Remove trailing whitespace 2018-11-20 11:15:02 +01:00
icon.png Optimize images losslessly using `oxipng -o6 --strip all --zopfli` 2018-06-28 19:17:41 +02:00
icon.svg Use new Godot icon consistently everywhere 2017-05-17 19:53:59 +02:00
logo.png Optimize images losslessly using `oxipng -o6 --strip all --zopfli` 2018-06-28 19:17:41 +02:00
logo.svg Use new Godot icon consistently everywhere 2017-05-17 19:53:59 +02:00
methods.py Move YEAR definition to version.py 2019-03-05 23:07:03 +01:00
platform_methods.py Fixed short circuiting on non-Windows platforms 2018-07-30 23:55:15 +02:00
version.py Bump version to 3.2-dev 2019-03-13 18:43:13 +01:00

README.md

Godot Engine logo

Godot Engine

Homepage: https://godotengine.org

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 in one click to a number of platforms, including the major desktop platforms (Linux, Mac OSX, Windows) as well as mobile (Android, iOS) and web-based (HTML5) platforms.

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 Software Freedom Conservancy 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 Godot Engine

Getting the engine

Binary downloads

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

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.

To get in touch with the developers, the best way is to join the #godotengine IRC channel on Freenode.

To get started contributing to the project, see the contributing guide.

Documentation and demos

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

The class reference is also accessible from within the engine.

The official demos are maintained in their own GitHub repository as well.

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 info.

Travis Build Status AppVeyor Build Status Code Triagers Badge