aboutsummaryrefslogtreecommitdiff
path: root/main
Commit message (Collapse)AuthorAgeFilesLines
* Fix vsync initializationChaosus2018-06-251-0/+2
|
* add NoCache wrapper to CommandRhody Lugo2018-06-211-4/+4
|
* The build-solutions flag now forces editor mode.Nathan Warden2018-06-151-0/+1
|
* Removed unused AudioServer::update functionMarcelo Fernandez2018-06-151-3/+0
|
* Correct test list returned by test_get_namesEmmanuel Leblond2018-06-091-4/+9
|
* Add cli paramerter --check-only for script parsingTimur Celik2018-05-311-0/+8
|
* Revert "Make the performance reporting update frequency customizable"Juan Linietsky2018-05-282-14/+6
|
* Merge pull request #18998 from Calinou/customizable-performance-reporting-rateMax Hilbrunner2018-05-262-6/+14
|\ | | | | Make the performance reporting update frequency customizable
| * Make the performance reporting update frequency customizableHugo Locurcio2018-05-182-6/+14
| | | | | | | | The default update frequency has been changed from 1000ms to 250ms.
* | Only add autoloads in editor if they have tool scriptsGeorge Marques2018-05-221-24/+1
|/
* Add missing copyright headersGuilherme Felipe2018-05-162-0/+60
|
* -New inspector.Juan Linietsky2018-05-153-225/+273
| | | | | | | -Changed UI resizing code, gained huge amount of speed. -Reorganized timer sync to clean up behavior (sorry forgot commit this before) -
* Merge pull request #18545 from vnen/editor-autoloadJuan Linietsky2018-05-141-86/+108
|\ | | | | Enable autoload in editor
| * Enable autoload in editorGeorge Marques2018-05-011-86/+108
| | | | | | | | | | | | - Tool scripts will be executed and can be accessed by plugins. - Other script languages can implement add/remove_named_global_constant to make use of this functionality.
* | Change reused variable name in command line parsingLeon Krause2018-05-121-6/+6
| |
* | Remove dead branch in command line logicLeon Krause2018-05-121-16/+1
| |
* | Revert "Fix custom resource path look-up per command line"Leon Krause2018-05-121-4/+1
| | | | | | | | This reverts commit 942f6dfbd66c1d15a45ef6447fd883103d9678a8.
* | Merge pull request #18770 from eska014/cmdlineRémi Verschelde2018-05-111-3/+6
|\ \ | | | | | | Command line fixes
| * | Fix help/man for --export and --export-debugLeon Krause2018-05-101-2/+2
| | |
| * | Fix custom resource path look-up per command lineLeon Krause2018-05-101-1/+4
| | |
* | | Fix setting for pointing emulationvolzhs2018-05-101-2/+2
|/ / | | | | | | | | | | Fix #18582 GLOBAL_DEF("input/something") is treated as Input Map setting, not as General.
* | Merge pull request #14622 from bruvzg/non-rectangular-windowsHein-Pieter van Braam2018-05-081-0/+5
|\ \ | | | | | | Experimental support for windows with per-pixel transparency.
| * | Experimental support for windows with per-pixel transparency (macOS, X11 and ↵bruvzg2018-04-071-0/+5
| | | | | | | | | | | | Windows).
* | | Local debugger fixes and extensionsBlazej Floch2018-05-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Adds q/quit option to console debugging - Adds options (variable_prefix) - Breaks into debugger with Ctrl-C in local debug mode (Unix/Windows) - Added option to list all breakpoints - Fixes add/remove breakpoint bug (invalid path parsing) - Minor cleanup
* | | Merge pull request #17353 from zmanuel/timer_hysteresis_multiframe_pr1Juan Linietsky2018-05-072-16/+238
|\ \ \ | | | | | | | | Use hysteresis for smoother physics update frequency
| * | | Add hysteresis to physics timestep count per frameManuel Moos2018-04-092-16/+238
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new class _TimerSync to manage timestep calculations. The new class handles the decisions about simulation progression previously handled by main::iteration(). It is fed the current timer ticks and determines how many physics updates are to be run and what the delta argument to the _process() functions should be. The new class tries to keep the number of physics updates per frame as constant as possible from frame to frame. Ideally, it would be N steps every render frame, but even with perfectly regular rendering, the general case is that N or N+1 steps are required per frame, for some fixed N. The best guess for N is stored in typical_physics_steps. When determining the number of steps to take, no restrictions are imposed between the choice of typical_physics_steps and typical_physics_steps+1 steps. Should more or less steps than that be required, the accumulated remaining time (as before, stored in time_accum) needs to surpass its boundaries by some minimal threshold. Once surpassed, typical_physics_steps is updated to allow the new step count for future updates. Care is taken that the modified calculation of the number of physics steps is not observable from game code that only checks the delta parameters to the _process and _physics_process functions; in addition to modifying the number of steps, the _process argument is modified as well to stay in expected bounds. Extra care is taken that the accumulated steps still sum up to roughly the real elapsed time, up to a maximum tolerated difference. To allow the hysteresis code to work correctly on higher refresh monitors, the number of typical physics steps is not only recorded and kept consistent for single render frames, but for groups of them. Currently, up to 12 frames are grouped that way. The engine parameter physics_jitter_fix controls both the maximum tolerated difference between wall clock time and summed up _process arguments and the threshold for changing typical_physics_steps. It is given in units of the real physics frame slice 1/physics_fps. Set physics_jitter_fix to 0 to disable the effects of the new code here. It starts to be effective against the random physics jitter at around 0.02 to 0.05. at values greater than 1 it starts having ill effects on the engine's ability to react sensibly to dropped frames and framerate changes.
* | | | updated OAHashMap to use robinhood hashingkarroffel2018-05-031-3/+3
| | | |
* | | | Merge pull request #17196 from RandomShaper/improve-gui-touchRémi Verschelde2018-05-023-21/+127
|\ \ \ \ | | | | | | | | | | Implement universal translation of touch to mouse (3.1)
| * | | | Implement universal translation of touch to mousePedro J. Estébanez2018-04-303-21/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now generating mouse events from touch is optional (on by default) and it's performed by `InputDefault` instead of having each OS abstraction doing it. (*) The translation algorithm waits for a touch index to be pressed and tracks it translating its events to mouse events until it is raised, while ignoring other pointers. Furthermore, to avoid an stuck "touch mouse", since not all platforms may report touches raised when the window is unfocused, it checks if touches are still down by the time it's focused again and if so it resets the state of the emulated mouse. *: In the case of Windows, since it already provides touch-to-mouse translation by itself, "echo" mouse events are filtered out to have it working like the rest. On X11 a little hack has been needed to avoid a case of a spurious mouse motion event that is generated during touch interaction. Plus: Improve/fix tracking of current mouse position. ** Summary of changes to settings: ** - `display/window/handheld/emulate_touchscreen` becomes `input/pointing_devices/emulate_touch_from_mouse` - New setting: `input/pointing_devices/emulate_mouse_from_touch`
* | | | | Merge pull request #18291 from akien-mga/coverity-uninitialized-scalar-varRémi Verschelde2018-05-012-4/+2
|\ \ \ \ \ | |_|_|_|/ |/| | | | Fix Coverity reports of uninitialized scalar variable
| * | | | Fix Coverity reports of uninitialized scalar variableRémi Verschelde2018-04-192-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes most current reports on Coverity Scan of uninitialized scalar variable (CWE-457): https://cwe.mitre.org/data/definitions/457.html These happen most of the time (in our code) when instanciating structs without a constructor (or with an incomplete one), and later returning the instance. This is sometimes intended though, as some parameters are only used in some situations and should not be double-initialized for performance reasons (e.g. `constant` in ShaderLanguage::Token).
* | | | | Change ".." punctuation for "..." in editor strings (#16507)Hugo Locurcio2018-04-221-3/+3
| | | | |
* | | | | Enable DynamicFont oversampling by defaultHugo Locurcio2018-04-191-2/+2
|/ / / / | | | | | | | | | | | | | | | | This results in a better DynamicFont appearance when scaled, which is especially noticeable when using the `2d` scaling mode.
* | | | Merge pull request #16902 from groud/analog_action_systemJuan Linietsky2018-04-182-4/+16
|\ \ \ \ | |/ / / |/| | | Allow actions to provide an analog value
| * | | Allow actions to provide an analog valueGilles Roudiere2018-04-162-4/+16
| |/ /
* | | Implement Input.set_default_cursor_shape to change the default shapeGuilherme Felipe2018-04-102-0/+12
| | | | | | | | | | | | Closes #18043
* | | Allow set_custom_mouse_cursor use same cursor(image) with different shapes.Guilherme Felipe2018-04-092-10/+0
|/ /
* | Merge pull request #17730 from RandomShaper/radio-buttons-in-menusJuan Linietsky2018-04-071-0/+4
|\ \ | |/ |/| Radio buttons in menus
| * Add radio-button-looking entries to PopupMenuPedro J. Estébanez2018-03-271-0/+4
| | | | | | | | | | | | | | | | | | | | They work exactly the same as current checkbox-decorated items, but in order to preserve compatibility, separate methods are used, like `add_radio_check_item()`. The other option would have been to add a new parameter at the end of `add_check_item()` and the like, but that would have forced callers to provide the defaults manually. `is_item_checkable()`, `is_item_checked()` and `set_item_checked()` are used regardless the item is set to look as check box or radio button. Keeping check in the name adds an additional clue about these facts. Closes #13055.
* | Fix segfault on x11n4nn313552018-04-051-1/+1
|/
* Add --print-fps option to output FPS to stdoutRémi Verschelde2018-03-211-4/+12
| | | | | | | | | Works both for the editor and games. Projects can still use "debug/settings/stdout/print_fps" to enable it permanently. The --print-fps option takes precedence (so works even if the project setting is disabled). That setting is also no longer redefined on the fly based on the verbose flag, that was a mess.
* Open textfile in textmodeShyRed2018-03-161-1/+1
| | | | Open mapping files in textmode as they are textfiles.
* SCons: properly close files when reading controller mappingsRémi Verschelde2018-03-162-6/+6
| | | | Fixup to #17296.
* Merge pull request #17296 from cart/controller-mapping-autogenHein-Pieter van Braam2018-03-157-289/+1183
|\ | | | | Generate controller mapping class from one or more SDL2 database files
| * Generate controller mapping class from one or more SDL2 database filesCarter Anderson2018-03-057-289/+1183
| |
* | Fix debugger_stdout_settings being ignoredBernhard Liebl2018-03-151-13/+13
| |
* | Properly closing all files in Python codeViktor Ferenczi2018-03-111-36/+35
|/
* Fix `--help` output, allow renderer override from command line ↵bruvzg2018-03-021-2/+5
| | | | (`--video-driver`).
* Allow running with a custom resource without a main sceneHein-Pieter van Braam2018-02-261-15/+16
| | | | | | | | | | | After 3f8a4cc7193e964f716fde2cd28a946669e2d8d6 trying to run an individual scene on a project without a main scene fails. We move the check until after we've determined whether or not we're trying to run an individual scene. We also stop trying to show the project manager if any game pack is found at all, unless the user explicitly asks for the project manager to be shown.
* Add --quit option to help output and update manpageRémi Verschelde2018-02-241-2/+3
|