Age | Commit message (Collapse) | Author |
|
|
|
Implements set_margins_preset(...)
|
|
Some more GDScript performance optimizations
|
|
Add types to scons command-line options
|
|
Enhance iOS export
|
|
ports. Closes #11258
|
|
|
|
|
|
|
|
|
|
- The export process now builds complete .ipa on macOS, instead of just
creating XCode project.
- The project includes Capabilities games usually require: Game Center,
Push Notifications, In-App Purchase.
- Icons and launch screens can be specified in export preset.
|
|
These errors shouldn't be possible on a tested game. Remove the checks
on release. Shaves about 10% off of tight loops.
|
|
On compulers that define __GNUC__ use computed goto to directly dispatch
the next instruction rather than going through another switch statement.
This saves a jump and some comparisons.
In tight loops this is is roughly 10% faster than the switch() method.
|
|
This release hides many struct members which provides easier forward
compatibility but is a break from previous releases. A few small macros
provide compatibility between both 1.1.0 and 1.0.x.
Fixes #8624.
|
|
classes
|
|
set_anchors_and_margins_preset(PRESET_WIDE)
|
|
Implement Linux-style likely()/unlikely() macros
|
|
|
|
This implement branch prediction macros likely() and unlikely() like in
Linux. When using these macros please ensure that when you use them the
condition in the branch really is very, very likely or unlikely. Think
90+% of the time. Primarily useful for error checking. (And I implement
these macros for all our error checking macros now)
See this article for more information:
https://kernelnewbies.org/FAQ/LikelyUnlikely
There are more places where these macros may make sense in renderer and
physics engine. Placing them will come in another commit down the line.
|
|
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:
* pos -> position
* rot -> rotation
* loc -> location
C++ variables are left as is.
|
|
At least this makes Godot compile for Android until there is a better
solution.
|
|
Visual improvements and new look for VS
|
|
We now allow booleanization of all types. This means that empty versions
of all types now evaluate to false. So a Vector2(0,0), Dictionary(),
etc.
This allows you to write GDScript like:
if not Dictionary():
print("Empty dict")
Booleanization can now also no longer fail. There is no more valid flag,
this changes Variant and GDNative API.
|
|
Various GDScript performance tweaks
|
|
Fix MSVC compilation errors
|
|
|
|
|
|
As a preparation for other performance enhancements to GDScript:call()
start by removing more of the GDScript runtime checks on release.
This code has been tested with 2d/platformer, 3d/platformer,
3d/materials_test, and goltorus. No regressions were found.
|
|
In an effort to make GDScript a little faster replace the double
switch() with a computed goto on compilers that set __GNUC__. For
compilers that don't support computed goto it will fall back to regular
switch/case statements.
In addition disable using boolean values in a mathematical context. Now
boolean values can only be compared with other booleans. Booleans will
also no longer be coerced to integers.
This PR replaces #11308 and fixes #11291
|
|
[GDnative] pass api as struct of function pointers to loaded gdnative modules
|
|
|
|
godot_gdnative_init_options
|
|
Renamed function arguments to keep them consistent between declaration and implementation
|
|
Also add missing copyright headers.
[ci skip]
|
|
|
|
Fix enums bindings
|
|
Construct Variants from Reference properly in GDNative
|
|
|
|
implementation
|
|
|
|
Previously godot_variant_new_object constructed Variant without
accounting for the fact that the Object can be a Reference, so refcount
was not increased and References were destructed prematurely.
Also, Reference::init_ref did not propagate refcount increment to the
script instance, which led to desync of refcount info on the script
side and Godot side.
|
|
|
|
Add missed bindings for enums
Move some enums to class to have correct output of api.json
|
|
Fix crash on wrong type drag into the vs editor
|
|
optimized color conversion for svg generation
|
|
In-editor navmesh generation.
|
|
|
|
possible to save module files in module directories and the build system will
recognize them.
|
|
|
|
|