Chong-U Lim
0f223783dc
Fix editor crash on "save and exit" bug
...
If a scene is modified and a user closes the editor and selects the "Save
and exit" option in the modal dialog -- the editor crashes. This appears
to be a result of the message queue being memdeleted AFTER visual servers
have been destroyed. Remnant textures handled by the message queue throw a
NRE when their own ~Texture destructors reference the visual servers.
This fixes bugs: #12946 and #12813 .
2017-12-20 08:34:04 +00:00
Hein-Pieter van Braam
7a10d3ab78
Correct license headers in main.cpp and voxel_light_baker.cpp
...
Sorry for the churn
2017-12-20 01:04:30 +01:00
Hein-Pieter van Braam
9fa5a588f0
Fix lightbaker clang-format issue and add license headers
2017-12-20 01:02:03 +01:00
Juan Linietsky
fc103566e6
Added font oversampling support
2017-12-19 18:48:30 -03:00
Juan Linietsky
cf84ee22a9
Added custom editor splash (including sponsor logo).
2017-12-16 16:11:13 -03:00
Juan Linietsky
93a63a5e1a
GDScript files are converted to binary on export now.
2017-12-14 15:34:47 -03:00
Stefano Bonicatti
c067cf2c6a
Fixes vsync setting ignored when using a separate thread for rendering
...
Setting the vsync in the main thread, after the rendering thread starts
and takes the OpenGL context fails, so we need to do that before.
Also, for some reason, the main thread cannot make current the context
anymore.
Fixes #13447
2017-12-09 01:43:23 +01:00
Rémi Verschelde
13c2ff9320
Style: Apply new clang-format 5.0 style to all files
2017-12-07 08:02:00 +01:00
Juan Linietsky
9cf44c1c53
Disable logger by default.
2017-11-26 14:58:30 -03:00
Juan Linietsky
62d86b1588
Modified low processor sleep to 8000 and made it customizable (should be customizable for editor too)
2017-11-22 14:41:45 -03:00
Juan Linietsky
640856f4d4
Merge pull request #11895 from m4nu3lf/rendering/separate_thread
...
Restore rendering on a separate thread
2017-11-21 14:31:14 -03:00
Ruslan Mustakov
d42c5646a5
Return and repair file logging
...
And make it configurable, too.
2017-11-21 16:43:44 +07:00
Rémi Verschelde
450bdda97a
Merge pull request #12387 from santouits/x1111
...
Fix x11 boot logo position in fullscreen and in maximized
2017-11-20 15:48:08 +01:00
Rémi Verschelde
6947bed015
Pass engine name and version parts as proper strings
...
Removes the need for _MKSTR all over the place which has the drawback of
converting _MKSTR(UNKNOWN_DEFINE) to "UKNOWN_DEFINE" instead of throwing
a compilation error.
2017-11-20 00:51:14 +01:00
Rémi Verschelde
d40b1825fc
Revert "change low cpu delay to 1 usec, should make editor smoother and not really use"
...
This reverts commit ca19403306
.
See discussion in ca19403306 (commitcomment-25715906)
It also did not fix the issue it claimed to fix.
2017-11-19 21:40:25 +01:00
Rémi Verschelde
992a40a50d
Merge pull request #12961 from eska014/platform-doc
...
Facilitate documenting platform-exclusive classes
2017-11-19 16:19:47 +01:00
m4nu3lf
871c47a2bb
Restore rendering on a separate thread
2017-11-18 18:35:25 +00:00
Leon Krause
63b1a096eb
Facilitate exposing platform-exclusive interfaces to all platforms
...
This makes the interfaces available, without implementation, in other
platforms and the editor, which facilitates documenting platform-exclusive
classes.
Platform-exclusive APIs must be set up in platform/<platform>/api/api.cpp.
Provide noop method-implementations where necessary.
Also setup and document the HTML5 platform's JavaScript singleton.
2017-11-18 03:54:21 +01:00
Juan Linietsky
ca19403306
change low cpu delay to 1 usec, should make editor smoother and not really use
...
a lot more cpu. Fixes #11030
2017-11-17 21:22:37 -03:00
Leon Krause
9b7b46143d
Move singleton management from ProjectSettings to Engine
2017-11-14 15:15:13 +01:00
Juan Linietsky
5cb1d064bc
fixes to initialization order
2017-11-09 13:56:13 -03:00
Juan Linietsky
d09160a8b6
Make video mode initialization more intuitive, fixes #12022
2017-11-09 13:02:26 -03:00
Juan Linietsky
7715a261d5
Merge pull request #12262 from AndreaCatania/pplug
...
Physics server plug
2017-11-03 23:39:44 -03:00
AndreaCatania
7a9ca08f16
Implemented physics plug
...
Moved init_physics
Implemented physics 2D plug
Fix clang
Fix clang
Fix static check
Fix clang
Fix static check
Moved physics server initialization
Moved physics server settings initialization
2017-11-04 03:25:51 +01:00
santouits
55fae24710
Fix x11 boot logo position in fullscreen and in maximized
2017-10-26 01:06:26 +03:00
Poommetee Ketson
9b634180aa
Refactor Fixed to Physics
2017-10-21 21:28:08 +07:00
geequlim
eeacae563c
Fix window display shrink can't set to float numbers
2017-10-20 12:52:18 +02:00
BastiaanOlij
cc37d43f86
Redoing the ARVR GDNative interface as module and tighter implementation
2017-10-14 09:10:18 +11:00
Rémi Verschelde
c30ab882d7
Merge pull request #11539 from BastiaanOlij/remove_directory_scan
...
Removed directory scan from project load
2017-10-11 23:37:10 +02:00
Ignacio Etcheverry
740ef3dc97
Merge pull request #11954 from neikeq/d
...
Added 'exposed' field to ClassInfo for registered classes
2017-10-11 13:54:34 +02:00
BastiaanOlij
e9c606fd29
Made directory scan optional
2017-10-10 23:45:54 +11:00
Ignacio Etcheverry
0c2e882210
Adds 'exposed' field to ClassInfo
...
This field represents if the class is exposed to the scripting API.
The value is 'true' if the class was registered manually ('ClassDB::register_*class()'), otherwise it's false (registered on '_post_initialize').
- Added missing registration of classes that are meant to be exposed.
2017-10-09 23:49:17 +02:00
Juan Linietsky
d938de67ff
Make sure to obey hidpi to off by default, as present in project settings. Set it to on by default for editor.
...
Many integrated GPUs can't really get enough performance to play games at hidpi, so this should be enabled manually.
2017-10-05 16:41:42 -03:00
Juan Linietsky
3d87b70f7a
Added the set/get_setting function in Editor/Project settings. Renamed has() to has_setting. Fixes #11844
2017-10-05 15:34:34 -03:00
Andreas Haas
132ba0ed97
Merge pull request #11568 from endragor/loggers
...
Extract logging logic
2017-10-02 23:51:26 +02:00
AndreaCatania
4537977d6d
Renamed fixed_process to physics_process
2017-09-30 16:19:07 +02:00
Ruslan Mustakov
1a2311e350
Extract logging logic
...
Previously logging logic was scattered over OS class implementations
with plenty of duplication. Major changes in this commit:
- Extracted logging logic into a separate Logger hierarchy. It allows
easy configuration of logging mechanism depending on compile-time or
run-time configuration.
- Implemented RotatedFileLogger which is usually used with StdLogger,
providing persistency of logs. It is often important to be able to
obtain logs of the game even in production to be able to understand
what happened prior to some problem. On mobile there previously was
no way to obtain the logs aside from having the device connected to
your machine.
- flush() is not performed in release mode for every logged line. It
is only performed for errors.
2017-09-25 16:19:21 +07:00
Hein-Pieter van Braam
1f4685375f
Fix typo in fixed-fps help line
2017-09-24 20:24:41 +02:00
Rémi Verschelde
4fa486430e
main: Add --version switch and git hash to --help
...
Also fix some help strings.
2017-09-24 11:56:07 +02:00
Rémi Verschelde
ffec7cf193
Merge pull request #11299 from marcelofg55/fix_seticon_default
...
Fix setting the default icon briefly with tools=no
2017-09-21 10:30:36 +02:00
Marcelo Fernandez
ff1e0a3e2c
Prevent running the crash_handler when a debugger is present on windows
2017-09-18 16:29:23 -03:00
Marcelo Fernandez
092509cbad
Fix setting the default icon briefly with tools=no
2017-09-17 11:56:33 -03:00
Marcelo Fernandez
83fe937362
Added a crash handler to dump the backtrace on Windows, Linux and OS X
2017-09-13 10:07:23 -03:00
Rémi Verschelde
e73e00d369
Style: Apply clang-format to @reduz's changes
...
[ci skip]
2017-09-13 09:13:34 +02:00
Juan Linietsky
4f929a0fdf
Changed the doc class generation to individual files per class. It is also possible to save module files in module directories and the build system will
...
recognize them.
2017-09-12 17:45:41 -03:00
Juan Linietsky
50bc1f2922
Merged docs and small correction to lowdpi feature (it supports windows now)
2017-09-12 11:40:18 -03:00
Hein-Pieter van Braam
b2a38854fd
Fix unused variable warnings
...
The forth in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-08 15:03:53 +02:00
Juan Linietsky
1eeda0f32f
Restored auto snapping of controls to pixels, fixes #10847 and probably several more issues. Made it optional in the project settings but defaults to true.
2017-09-07 11:22:07 -03:00
Rémi Verschelde
6f762ad709
Merge pull request #10422 from endragor/gdnative-android
...
Make GDNative work on Android
2017-08-31 13:51:10 +02:00
Gustav Lund
417113edf3
Renderer/Simulator flags
...
Now hopefully with correct code style
2017-08-30 14:22:43 +02:00